wp_register_sidebar_widget WordPress Action Hook

The wp_register_sidebar_widget hook is used to register a new sidebar widget. This hook accepts two arguments: the ID of the sidebar widget and the callback function that will display the sidebar widget.

do_action( 'wp_register_sidebar_widget', array $widget ) #

Fires once for each registered widget.


Parameters

$widget

(array)An array of default widget arguments.


Top ↑

Source

File: wp-includes/widgets.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.