do_action( ‘dynamic_sidebar_after’, int|string $index, bool $has_widgets )

In this article

Fires after widgets are rendered in a dynamic sidebar.

Description

Note: The action also fires for empty sidebars, and on both the front end and back end, including the Inactive Widgets sidebar on the Widgets screen.

Parameters

$indexint|string
Index, name, or ID of the dynamic sidebar.
$has_widgetsbool
Whether the sidebar is populated with widgets.
Default true.

Source

do_action( 'dynamic_sidebar_after', $index, true );

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.