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
500            * Filter the widget instance's settings before displaying the control form.
501            *
502            * Returning false effectively short-circuits display of the control form.
503            *
504            * @since 2.8.0
505            *
506            * @param array     $instance The current widget instance's settings.
507            * @param WP_Widget $this     The current widget instance.
508            */
509           $instance = apply_filters( 'widget_form_callback', $instance, $this );
510
511           $return = null;
512           if ( false !== $instance ) {
513                $return = $this->form($instance);
514
515                /**
516                 * Fires at the end of the widget control form.
517                 *
518                 * Use this hook to add extra fields to the widget form. The hook