我为主题定制创建了一个功能。
function create_theme_option() {
add_menu_page( 'Manage Options', //Page Title
'Theme Option', //WP Administrator Menu Title
'manage_options', //
'theme-options', //Link to a page to your Administration Area
'deploy_theme_options', //Function Name
get_template_directory_uri() . '/Plugins/Background Changer/images/icons/icon.png',//Menu Icon
99);
add_submenu_page("theme-options", "Theme Settings", "Theme Settings", 1, "theme-settings", "theme_settings");
add_submenu_page("theme-options", "Manage Header", "Manage Header", 1, "manage-header", "manage_header");
add_submenu_page("theme-options", "Social Media", "Social Media Links", 1, "social-media", "social_media");
add_submenu_page("theme-options", "Catalog Manager", "Catalog Manager", 1, "catalog-manager", "catalog_manager");
}
但我注意到在标签“主题选项”之后,旁边出现了另一个文本作为“主题选项”。检查下面的图片:
我怎样才能解决这个问题?请帮忙!