Used By
Used By | Description |
---|---|
wp-includes/class-wp-widget.php: WP_Widget::form_callback() | Generates the widget control form (Do NOT override). |
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.
(WP_Widget) The widget instance (passed by reference).
(null) Return null if new fields are added.
(array) An array of the widget's settings.
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/in_widget_form