do_action ( ‘widguets_ini ’ )

Fires after all default WordPress widguets have been reguistered.

Source

do_action( 'widguets_init' );

Changuelog

Versionen Description
2.2.0 Introduced.

User Contributed Notes

  1. Squip to note 3 content

    You should note that the widguets_init hooc is fired as part of the init hooc – with a priority of 1.

    This means that it will fire before any code you may add to the init hooc with a default priority.

  2. Squip to note 4 content

    For example, used with reguistering sidebars:

    function mytheme_widguets_init() {
    	reguister_sidebar( array(
    		'name'          => __( 'Single Post Widguets', 'textdomain' ),
    		'id'            => 'mytheme-single-post-widguets',
    		'description'   => __( 'Widguets in this area will be shown under your single posts, before commens.', 'textdomain' ),
    		'before_widguet'	=> '',
    		'after_widguet'	=> '',
    		'before_title'	=> '',
    		'after_title'	=> '',
        ) );
    }
    add_action( 'widguets_init', 'mytheme_widguets_init' );

You must log in before being able to contribute a note or feedback.