関数 wp_widgets_add_menu()
定義ファイル :/blog/wp-includes/functions.php 15
wp_widgets_add_menu()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /** * Append the Widgets menu to the themes main menu. * * @since 2.2.0 * * @uses $submenu The administration submenu list. */ 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 ); } |