dynamic_sidebar
最后更新于:2021-11-26 08:55:21
do_action( ‘dynamic_sidebar’, array $widget )
Fires before a widget’s display callback is called.
参数
- $widget
-
(array)
An associative array of widget arguments.-
‘name’
(string) Name of the widget. -
‘id’
(string) Widget ID. -
‘callback’
(callable) When the hook is fired on the front end,$callback
is an array containing the widget object. Fired on the back end,$callback
is ‘gc_widget_control’, see$_callback
. -
‘params’
(array) An associative array of multi-widget arguments. -
‘classname’
(string) CSS class applied to the widget container. -
‘description’
(string) The widget description. -
‘_callback’
(array) When the hook is fired on the back end,$_callback
is populated with an array containing the widget object, see$callback
.
-
‘name’
源文件
文件: gc-includes/widgets.php