wp_widgets_add_menu

Definition:
function wp_widgets_add_menu() {}

Append the Widgets menu to the themes main menu.

Source code

function wp_widgets_add_menu() {

	global $submenu;

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

	ksort( $submenu['themes.php'], SORT_NUMERIC );

}

4263

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

Leave a comment