wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_add_state_style_group › WordPress Function
Since7.1.0
Deprecatedn/a
› wp_add_state_style_group ( $groups, $selector, $style )
| Parameters: (3) |
|
| Defined at: |
|
| Codex: |
Adds a style fragment to a selector-keyed state style group.
Source
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 );
}