WP_Customize_Selective_Refresh::get_partial()publicWP 4.5.0

Retrieves a partial.

Method of the class: WP_Customize_Selective_Refresh{}

No Hooks.

Return

WP_Customize_Partial|null. The partial, if set. Otherwise null.

Usage

$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh();
$WP_Customize_Selective_Refresh->get_partial( $id );
$id(string) (required)
Customize Partial ID.

Changelog

Since 4.5.0 Introduced.

WP_Customize_Selective_Refresh::get_partial() code WP 6.5.2

public function get_partial( $id ) {
	if ( isset( $this->partials[ $id ] ) ) {
		return $this->partials[ $id ];
	} else {
		return null;
	}
}