WP_Customize_Manager::get_control()
Retrieves a customize control.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
WP_Customize_Control|null
. The control object, if set.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->get_control( $id );
- $id(string) (required)
- ID of the control.
Changelog
Since 3.4.0 | Introduced. |
WP_Customize_Manager::get_control() WP Customize Manager::get control code WP 6.5.2
public function get_control( $id ) { if ( isset( $this->controls[ $id ] ) ) { return $this->controls[ $id ]; } }