register_sidebar action-hookWP 3.0.0

Fires once a sidebar has been registered.

Usage

add_action( 'register_sidebar', 'wp_kama_register_sidebar_action' );

/**
 * Function for `register_sidebar` action-hook.
 * 
 * @param array $sidebar Parsed arguments for the registered sidebar.
 *
 * @return void
 */
function wp_kama_register_sidebar_action( $sidebar ){

	// action...
}
$sidebar(array)
Parsed arguments for the registered sidebar.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

register_sidebar()
register_sidebar
wp-includes/widgets.php 317
do_action( 'register_sidebar', $sidebar );

Where the hook is used in WordPress

Usage not found.