wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_custom_css_has_value › WordPress Function

Depuis7.2.0
Dépréciéen/a
› wp_custom_css_has_value ( $style_node )
Accès:
  • private
Paramètres:
  • (mixed) $style_node A style node, possibly containing a `css` key.
    Requis: Oui
Retourne:
  • (bool) Whether the node has a non-empty custom CSS string.
Défini(e) dans:
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'] );
}