in_widget_form
动作钩子
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance )
- 参数
-
-
(WP_Widget)
$widget
The widget instance (passed by reference).- Required: 是
-
(null)
$return
Return null if new fields are added.- Required: 是
-
(array)
$instance
An array of the widget’s settings.- Required: 是
-
(WP_Widget)
- 定义位置
-
-
wp-includes/class-wp-widget.php
, line 553
-
wp-includes/class-wp-widget.php
- 引入
- 2.8.0
- 弃用
- –
Fires at the end of the widget control form.
Use this hook to add extra fields to the widget form. The hook
is only fired if the value passed to the ‘widget_form_callback’
hook is not false.
Note: If the widget has no form, the text echoed from the default
form method can be hidden using CSS.
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。