过滤正在更新的custom_css帖子的css(post_content)和preprocessed(post_content_filtered)args。
原型
apply_filters( 'update_custom_css_data', array $data, array $args )
描述
此过滤器可由提供CSS预处理器的插件使用,将原始预处理的CSS存储在post_content_filtered中,然后将已处理的CSS存储在post_content中。以这种方式使用时,post_content_filtered应作为设置值而不是post_content通过customize_value_custom_css过滤器提供,例如:
参数
$data
(array)
自定义CSS数据。 ‘css’(字符串)存储在post_content中的CSS。 ‘preprocessed’(字符串)存储在post_content_filtered中的预处理CSS。通常是空字符串。
源文件
路径:“
其他
英文文档:https://developer.wordpress.org/reference/hooks/update_custom_css_data/