Advertisements

wp_widgets_init

Definition:
function wp_widgets_init() {}

Register all of the default WordPress widgets on startup.
Calls ‘widgets_init’ action after all of the WordPress widgets have been registered.

Defined actions

  • widgets_init
    do_action('widgets_init');

Source code

function wp_widgets_init() {

	if ( !is_blog_installed() )

		return;



	register_widget('WP_Widget_Pages');



	register_widget('WP_Widget_Calendar');



	register_widget('WP_Widget_Archives');



	register_widget('WP_Widget_Links');



	register_widget('WP_Widget_Meta');



	register_widget('WP_Widget_Search');



	register_widget('WP_Widget_Text');



	register_widget('WP_Widget_Categories');



	register_widget('WP_Widget_Recent_Posts');



	register_widget('WP_Widget_Recent_Comments');



	register_widget('WP_Widget_RSS');



	register_widget('WP_Widget_Tag_Cloud');



	register_widget('WP_Nav_Menu_Widget');



	do_action('widgets_init');

}

4265

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: