Filter wp_get_custom_css
for applying the customized value.
This is used in the preview when wp_get_custom_css()
is called for rendering the styles.
(string) (Required) Original CSS.
(string) (Required) Current stylesheet.
(string) CSS.
File: wp-includes/customize/class-wp-customize-custom-css-setting.php
public function filter_previewed_wp_get_custom_css( $css, $stylesheet ) { if ( $stylesheet === $this->stylesheet ) { $customized_value = $this->post_value( null ); if ( ! is_null( $customized_value ) ) { $css = $customized_value; } } return $css; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_custom_css_setting/filter_previewed_wp_get_custom_css