WordPress at a glance
function is not described

WP_Customize_Manager::get_control() public WP 3.4.0

Retrieve a customize control.

{} It's a 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.

Code of WP_Customize_Manager::get_control() WP 5.7.2

<?php
public function get_control( $id ) {
	if ( isset( $this->controls[ $id ] ) ) {
		return $this->controls[ $id ];
	}
}