wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_add_state_style_group › WordPress Function
Since7.1.0
已弃用n/a
› wp_add_state_style_group ( $groups, $selector, $style )
| 参数: (3) |
|
| 定义在: |
|
| 文档: |
Adds a style fragment to a selector-keyed state style group.
源码
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 );
}