wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_state_paints_own_background › WordPress Function

Da7.2.0
Deprecaton/a
› wp_state_paints_own_background ( $state_style )
Accedi:
  • private
Parametri:
  • (array<string,mixed>) $state_style State style object.
    Richiesto: Sì
Ritorna:
  • (bool) Whether the state sets a gradient or background image.
Definito a:
Codex:

Checks whether a state paints its own background.



Sorgenti

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