wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_state_paints_own_background › WordPress Function

Desde7.2.0
Obsoleton/a
› wp_state_paints_own_background ( $state_style )
Acesso:
  • private
Parâmetros:
  • (array<string,mixed>) $state_style State style object.
    Required: Yes
Retorna:
  • (bool) Whether the state sets a gradient or background image.
Definido em:
Codex:

Checks whether a state paints its own background.



Fonte

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