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.
Source
File: wp-includes/widgets.php
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |