WordPress at a glance
function is not described

wp_widgets_add_menu() WP 2.2.0

Append the Widgets menu to the themes main menu.

  • Global. Array. $submenu

No Hooks.

Return

Nothing (null).

Usage

wp_widgets_add_menu();

Code of wp widgets add menu: wp-includes/functions.php WP 5.2.1

<?php
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 );
}