do_action( 'widgets_init' )
Fires after all default WordPress widgets have been registered.
Description Description
Source Source
File: wp-includes/widgets.php
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
For example, used with registering sidebars:
You should note that the
widgets_init
hook is fired as part of theinit
hook – with a priority of 1.This means that it will fire before any code you may add to the
init
hook with a default priority.