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
445            * Filter the widget instance's settings before displaying the control form.
446            *
447            * Returning false effectively short-circuits display of the control form.
448            *
449            * @since 2.8.0
450            *
451            * @param array     $instance The current widget instance's settings.
452            * @param WP_Widget $this     The current widget instance.
453            */
454           $instance = apply_filters( 'widget_form_callback', $instance, $this );
455
456           $return = null;
457           if ( false !== $instance ) {
458                $return = $this->form($instance);
459
460                /**
461                 * Fires at the end of the widget control form.
462                 *
463                 * Use this hook to add extra fields to the widget form. The hook