wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_custom_css_has_value › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_custom_css_has_value ( $style_node )
Dostęp:
  • private
Parametry:
  • (mixed) $style_node A style node, possibly containing a `css` key.
    Wymagane: Tak
Powrót:
  • (bool) Whether the node has a non-empty custom CSS string.
Zdefiniowane na:
Codex:

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



Źródło

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