A WordPress-centric search engine for devs and theme authors



wp_widgets_add_menu ›

Since2.2.0
Deprecatedn/a
wp_widgets_add_menu ( No parameters )
Defined at:
Codex:

Append the Widgets menu to the themes main menu.



Source

function wp_widgets_add_menu() {
	global $submenu;

	if ( ! current_theme_supports( 'widgets' ) )
		return;

	$submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );
	ksort( $submenu['themes.php'], SORT_NUMERIC );
}