Tribe__Tickets_Plus__Meta__Field__Abstract_Field::has_placeholder()

Check if the field has placeholder enabled.


Return

(bool)


Top ↑

Source

File: src/Tribe/Meta/Field/Abstract_Field.php

	public function has_placeholder() {
		$placeholder_types = [
			'text',
			'telephone',
			'url',
			'email',
		];

		/**
		 * Allow to filter the supported Placeholders AR fields.
		 *
		 * @param array                                            $placeholder_types List of types that support Placeholder.
		 * @param Tribe__Tickets_Plus__Meta__Field__Abstract_Field $field             The field object.
		 *
		 * @since 5.2.5
		 */
		$placeholder_types = (array) apply_filters( 'event_tickets_plus_placeholder_enabled_ar_fields', $placeholder_types, $this );

		return in_array( $this->type, $placeholder_types, true );
	}

Top ↑

Changelog

Changelog
Version Description
5.2.5 Introduced.