WPDev.one
Core Class

WP_Customize_Custom_CSS_Setting

class WP_Customize_Custom_CSS_Setting // Constructor: function Object() { [native code] }

Custom Setting to handle WP Custom CSS.

Methods 6 methods

Method / Return Description
__construct()
void

WP_Customize_Custom_CSS_Setting constructor.

Parameters: $manager: mixed, $id: mixed, $args: mixed
preview()
bool

Add filter to preview post value.

filter_previewed_wp_get_custom_css()
string

Filters `wp_get_custom_css` for applying the customized value.

Parameters: $css: mixed, $stylesheet: mixed
value()
string

Fetch the value of the setting. Will return the previewed value when `preview()` is called.

validate()
(true

Validate a received value for being valid CSS.

Parameters: $value: mixed
update()
(int

Store the CSS setting value in the custom_css custom post type for the stylesheet.

Parameters: $value: mixed

Properties

Property / Type Description
$type
mixed
public
No description available.
$transport
mixed
public
No description available.
$capability
mixed
public
No description available.
$stylesheet
mixed
public
No description available.

Class Information

Since Version
4.7.0
Source File
wp-includes/customize/class-wp-customize-custom-css-setting.php
Advertisement