GC_Customize_Widgets::preview_sidebars_widgets()
最后更新于:2021-11-27 11:45:24
GC_Customize_Widgets::preview_sidebars_widgets( array$sidebars_widgets)When previewing, ensures the proper previewing widgets are used.
参数
- $sidebars_widgets
-
(array) (Required) List of widgets for the current sidebar.
响应
(array)
源文件
文件: gc-includes/class-gc-customize-widgets.php
public function preview_sidebars_widgets( $sidebars_widgets ) {
$sidebars_widgets = get_option( 'sidebars_widgets', array() );
unset( $sidebars_widgets['array_version'] );
return $sidebars_widgets;
}