dynamic_sidebar

dynamic_sidebar

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('dynamic_sidebar') is found 2 times:

  • /wp-includes/widgets.php line 842
    		 *     @type array    $_callback   When the hook is fired on the back end, `$_callback` is populated
    		 *                                 with an array containing the widget object, see `$callback`.
    		 * }
    		 */
    		do_action( 'dynamic_sidebar', $wp_registered_widgets[ $id ] );
    
    		if ( is_callable( $callback ) ) {
    			call_user_func_array( $callback, $params );
    			$did_one = true;
    		}
    	}
    
  • /wp-includes/widgets.php line 2038
     
    	ob_start();
    
    	/** This filter is documented in wp-includes/widgets.php */
    	do_action( 'dynamic_sidebar', $wp_registered_widgets[ $widget_id ] );
    
    	if ( is_callable( $callback ) ) {
    		call_user_func_array( $callback, $params );
    	}
    
    	return ob_get_clean();
    

See this hook used in plugins: