サブメニューHeader
からサブBackground
ページを削除するにはどうすればよいですか?Appearance
remove_submenu_page
Themes
andでうまく機能Menus
しますが、削除する方法が見つからないようですHeader
and Background
!
次に例を示します。
// working just fine:
remove_submenu_page( 'themes.php', 'themes.php' );
remove_submenu_page( 'themes.php', 'nav-menus.php' );
// not working:
remove_submenu_page( 'themes.php', 'themes.php?page=custom-header' );
remove_submenu_page( 'themes.php', 'themes.php?page=custom-background' );