Property | Type | Description | |
---|---|---|---|
$capability | string | Capability required to edit this setting. | |
$stylesheet | string | Stylesheet | |
$transport | string | Setting Transport | |
$type | string | The setting type. |
Method | Description | |
---|---|---|
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) | WP_Customize_Custom_CSS_Setting constructor. | |
filter_previewed_wp_get_custom_css ( string $css, string $stylesheet ) : string | Filter wp_get_custom_css for applying the customized value. | |
preview ( ) : boolean | Add filter to preview post value. | |
update ( string $css ) : integer | false | Store the CSS setting value in the custom_css custom post type for the stylesheet. | |
validate ( string $css ) : true | WP_Error | Validate CSS. | |
value ( ) : string | Fetch the value of the setting. Will return the previewed value when preview() is called. |
Method | Description | |
---|---|---|
is_possible_content_error ( string $css ) : boolean | Find "content:" within a string. | |
validate_balanced_characters ( string $opening_char, string $closing_char, string $css ) : boolean | Ensure there are a balanced number of paired characters. | |
validate_count_unclosed_comments ( string $css ) : integer | Count unclosed CSS Comments. | |
validate_equal_characters ( string $char, string $css ) : boolean | Ensure there are an even number of paired characters. |
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) | ||
$manager | WP_Customize_Manager | The Customize Manager class. |
$id | string | An specific ID of the setting. Can be a theme mod or option name. |
$args | array | Setting arguments. |
public string $capability | ||
return | string |