sidebars_widgets WordPress Filter Hook

The sidebars_widgets hook is used to register sidebars and widgets for a Wordpress site. This hook is called when a sidebar is registered or a widget is added to a sidebar.

apply_filters( 'sidebars_widgets', array $sidebars_widgets ) #

Filters the list of sidebars and their widgets.


Parameters

$sidebars_widgets

(array)An associative array of sidebars and their widgets.


Top ↑

Source

File: wp-includes/widgets.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.