WP_Customize_Manager::get_panel( string $id ): WP_Customize_Panel|void

In this article

Retrieves a customize panel.

Parameters

$idstringrequired
Panel ID to get.

Return

WP_Customize_Panel|void Requested panel instance, if set.

Source

public function get_panel( $id ) {
	if ( isset( $this->panels[ $id ] ) ) {
		return $this->panels[ $id ];
	}
}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.