WP_Customize_Custom_CSS_Setting::preview()publicWP 4.7.9

Add filter to preview post value.

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

Хуков нет.

Возвращает

true|false. False when preview short-circuits due no change needing to be previewed.

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

$WP_Customize_Custom_CSS_Setting = new WP_Customize_Custom_CSS_Setting();
$WP_Customize_Custom_CSS_Setting->preview();

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

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

Код WP_Customize_Custom_CSS_Setting::preview() WP 6.1.1

public function preview() {
	if ( $this->is_previewed ) {
		return false;
	}
	$this->is_previewed = true;
	add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );
	return true;
}