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