WP_Customize_Selective_Refresh::get_partial()publicWP 4.5.0

Retrieves a partial.

Метод класса: WP_Customize_Selective_Refresh{}

Хуков нет.

Возвращает

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

Использование

$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh();
$WP_Customize_Selective_Refresh->get_partial( $id );
$id(строка) (обязательный)
Customize Partial ID.

Список изменений

С версии 4.5.0 Введена.

Код WP_Customize_Selective_Refresh::get_partial() WP 6.5.2

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