Tribe__Customizer__Section::get_control_type( string $type )
Gets the class object associated with a control type.
Contents
Parameters
- $type
-
(string) (Required) The "slug" of the control type.
Return
(object|false) The control type class or false if type not found.
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 ]; }
Changelog
Version | Description |
---|---|
4.13.3 | Introduced. |