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



wp_state_paints_own_background › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_state_paints_own_background ( $state_style )
Dostęp:
  • private
Parametry:
  • (array<string,mixed>) $state_style State style object.
    Wymagane: Tak
Powrót:
  • (bool) Whether the state sets a gradient or background image.
Zdefiniowane na:
Codex:

Checks whether a state paints its own background.



Źródło

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