wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_custom_css_has_value › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_custom_css_has_value ( $style_node )
Access:
  • private
Parameters:
  • (mixed) $style_node A style node, possibly containing a `css` key.
    Required: Yes
Returns:
  • (bool) Whether the node has a non-empty custom CSS string.
Defined at:
Codex:

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



Source

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'] );
}