On this page
WP_Customize_Custom_CSS_Setting::preview(): bool
Add filter to preview post value.
Return
bool False when preview short-circuits due no change needing to be previewed.
Source
File: wp-includes/customize/class-wp-customize-custom-css-setting.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| add_filter() wp-includes/plugin.php | Adds a callback function to a filter hook. |
Changelog
| Version | Description |
|---|---|
| 4.7.9 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_custom_css_setting/preview