Summery Summery

Fires at the end of the widget control form.

Syntax Syntax

do_action_ref_array( 'in_widget_form', WP_Widget $this, null $return, array $instance )

Description Description

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.

Parameters Parameters


The widget instance (passed by reference).


Return null if new fields are added.


An array of the widget's settings.

Source Source

File: wp-includes/class-wp-widget.php


Changelog Changelog

Version Description
2.8.0 Introduced.


Leave a Reply