Tribe__Customizer__Section::get_control_type( string $type )

Gets the class object associated with a control type.


Parameters

$type

(string) (Required) The "slug" of the control type.


Top ↑

Return

(object|false) The control type class or false if type not found.


Top ↑

Source

File: src/Tribe/Customizer/Section.php

	public function get_control_type( $type ) {
		$types = $this->get_accepted_control_types();

		if ( empty( $type ) ) {
			return $types[ 'default' ];
		}

		if ( empty( $types[ $type ] ) ) {
			return false;
		}

		return $types[ $type ];
	}

Top ↑

Changelog

Changelog
Version Description
4.13.3 Introduced.