Tribe__Customizer__Section::get_accepted_control_types()
Get a list (array) of accepted control types.
In the format slug => control class name.
Return
(array<string,string>) The array of control types and their associated classes.
Source
File: src/Tribe/Customizer/Section.php
public function get_accepted_control_types() { $accepted_control_types = [ 'checkbox' => WP_Customize_Control::class, 'color' => WP_Customize_Color_Control::class, 'default' => WP_Customize_Control::class, 'dropdown-pages' => WP_Customize_Control::class, 'heading' => Heading::class, 'image' => WP_Customize_Image_Control::class, 'radio' => Radio::class, 'select' => WP_Customize_Control::class, 'separator' => Separator::class, 'text' => WP_Customize_Control::class, 'textarea' => WP_Customize_Control::class, 'number' => Number::class, 'range-slider' => Range_Slider::class, 'toggle' => Toggle::class, ]; /** * Allows filtering the accepted control types. * * @since 4.13.3 * * @param array<string,string> $control_types The map of keys to WP Control classes. */ return apply_filters( 'tribe_customizer_accepted_control_types', $accepted_control_types, $this ); }
Changelog
Version | Description |
---|---|
4.13.3 | Introduced. |