wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_custom_css_has_value › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_custom_css_has_value ( $style_node )
Zugriff:
  • private
Parameter:
  • (mixed) $style_node A style node, possibly containing a `css` key.
    Erforderlich: Ja
Gibt zurück:
  • (bool) Whether the node has a non-empty custom CSS string.
Definiert in:
Codex:

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



Quellcode

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