wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_add_state_style_group › WordPress Function
Seit7.1.0
Veraltetn/v
› wp_add_state_style_group ( $groups, $selector, $style )
| Parameter: (3) |
|
| Definiert in: |
|
| Codex: |
Adds a style fragment to a selector-keyed state style group.
Quellcode
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 );
}