wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_state_paints_own_background › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_state_paints_own_background ( $state_style )
Access:
  • private
Parameters:
  • (array<string,mixed>) $state_style State style object.
    Required: Yes
Returns:
  • (bool) Whether the state sets a gradient or background image.
Defined at:
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'] );
}