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.2

do_action('dynamic_sidebar') is found 2 times:

  • /wp-includes/widgets.php line 842
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
         *     @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
    2035
    2036
    2037
    2038
    2039
    2040
    2041
    2042
    2043
    2044
    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: