WordPress开发者和主题制作者的搜索引擎



in_widget_form ›

Since2.8.0
已弃用n/a
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance )
参数: (3)
  • (WP_Widget) $this The widget instance (passed by reference).
    Required: Yes
  • (null) $return Return null if new fields are added.
    Required: Yes
  • (array) $instance An array of the widget's settings.
    Required: Yes
定义在:
文档:

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 ) );