WP_Customize_Custom_CSS_Setting::preview()publicWP 4.7.9

Add filter to preview post value.

Method of the class: WP_Customize_Custom_CSS_Setting{}

No Hooks.

Return

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

Usage

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

Changelog

Since 4.7.9 Introduced.

WP_Customize_Custom_CSS_Setting::preview() code WP 6.5.4

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;
}