wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_custom_css_has_value › WordPress Function

Since7.2.0
已弃用n/a
› wp_custom_css_has_value ( $style_node )
访问:
  • private
参数:
  • (mixed) $style_node A style node, possibly containing a `css` key.
    Required: Yes
返回:
  • (bool) Whether the node has a non-empty custom CSS string.
定义在:
文档:

Checks whether a style node has a non-empty custom CSS string.



源码

function wp_custom_css_has_value( $style_node ) {
	return is_array( $style_node )
		&& isset( $style_node['css'] )
		&& is_string( $style_node['css'] )
		&& '' !== trim( $style_node['css'] );
}