wphooks.info - widget_form_callback

widget_form_callback

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-widget.php:
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
		/**
		 * Filters the widget instance's settings before displaying the control form.
		 *
		 * Returning false effectively short-circuits display of the control form.
		 *
		 * @since 2.8.0
		 *
		 * @param array     $instance The current widget instance's settings.
		 * @param WP_Widget $this     The current widget instance.
		 */
		$instance = apply_filters( 'widget_form_callback', $instance, $this );

		$return = null;
		if ( false !== $instance ) {
			$return = $this->form( $instance );

			/**
			 * Fires at the end of the widget control form.
			 *
			 * Use this hook to add extra fields to the widget form. The hook