widget_display_callback

widget_display_callback

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('widget_display_callback') is found 2 times:

  • /wp-includes/class-wp-widget.php line 383
    			 * @param array     $instance The current widget instance's settings.
    			 * @param WP_Widget $widget   The current widget instance.
    			 * @param array     $args     An array of default widget arguments.
    			 */
    			$instance = apply_filters( 'widget_display_callback', $instance, $this, $args );
    
    			if ( false === $instance ) {
    				return;
    			}
    
    			$was_cache_addition_suspended = wp_suspend_cache_addition();
    
  • /wp-includes/widgets.php line 1251
     
    	$instance = wp_parse_args( $instance );
    
    	/** This filter is documented in wp-includes/class-wp-widget.php */
    	$instance = apply_filters( 'widget_display_callback', $instance, $widget_obj, $args );
    
    	if ( false === $instance ) {
    		return;
    	}
    
    	/**
    

See this hook used in plugins: