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



wp_state_paints_own_background › WordPress Function

Depuis7.2.0
Dépréciéen/a
› wp_state_paints_own_background ( $state_style )
Accès:
  • private
Paramètres:
  • (array<string,mixed>) $state_style State style object.
    Requis: Oui
Retourne:
  • (bool) Whether the state sets a gradient or background image.
Défini(e) dans:
Codex:

Checks whether a state paints its own background.



Source

function wp_state_paints_own_background( array $state_style ): bool {
	return ! empty( $state_style['background']['gradient'] ) ||
		! empty( $state_style['background']['backgroundImage'] ) ||
		! empty( $state_style['color']['gradient'] );
}