Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_form_callback

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
331            * Filter the widget instance's settings before displaying the control form.
332            *
333            * Returning false effectively short-circuits display of the control form.
334            *
335            * @since 2.8.0
336            *
337            * @param array     $instance The current widget instance's settings.
338            * @param WP_Widget $this     The current widget instance.
339            */
340           $instance = apply_filters( 'widget_form_callback', $instance, $this );
341
342           $return = null;
343           if ( false !== $instance ) {
344                $return = $this->form($instance);
345
346                /**
347                 * Fires at the end of the widget control form.
348                 *
349                 * Use this hook to add extra fields to the widget form. The hook