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



wp_add_state_style_group › WordPress Function

Da7.1.0
Deprecaton/a
› wp_add_state_style_group ( $groups, $selector, $style )
Parametri: (3)
  • (array) $groups Selector-keyed style groups.
    Richiesto: Sì
  • (string|null) $selector Block or feature selector.
    Richiesto: Sì
  • (array) $style Style fragment.
    Richiesto: Sì
Definito a:
Codex:

Adds a style fragment to a selector-keyed state style group.



Sorgenti

function wp_add_state_style_group( &$groups, $selector, $style ) {
	$key = is_string( $selector ) ? $selector : '';

	if ( ! isset( $groups[ $key ] ) ) {
		$groups[ $key ] = array(
			'selector' => $selector,
			'style'    => array(),
		);
	}

	$groups[ $key ]['style'] = array_replace_recursive( $groups[ $key ]['style'], $style );
}