WP_Customize_Custom_CSS_Setting::preview

Advertisement

Summery Summery

Add filter to preview post value.

Syntax Syntax

WP_Customize_Custom_CSS_Setting::preview()

Return Return

(bool) False when preview short-circuits due no change needing to be previewed.

Source Source

File: wp-includes/customize/class-wp-customize-custom-css-setting.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.9 Introduced.

Advertisement

Leave a Reply