Textfield::get_input_type( string $slug )

Returns a specific input type for a text element field.

Description

See also

Parameters

$slug

(string) (Required) Input type identifier.

Return

(array|false) Input type data for the identifier, or false if not found.

Source

File: src/db-objects/elements/element-types/base/textfield.php

	protected function get_input_type( $slug ) {
		$input_types = $this->get_input_types();

		if ( ! isset( $input_types[ $slug ] ) ) {
			return false;
		}

		return $input_types[ $slug ];
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.