Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the easy-digital-downloads domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/danigirol0/www/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/danigirol0/www/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the metform domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/danigirol0/www/wp-includes/functions.php on line 6131
Crear un menu y submenu dentro de un plugin de wordpress - Dani Girol

Crear un menu y submenu dentro de un plugin de wordpress

Como crear un submenu y un menu desde un plugin hecho a medida del wordpress
add_action('admin_menu', 'test_plugin_setup_menu_conector');

function test_plugin_setup_menu_conector(){

add_menu_page( 'CONECTOR ', 'CONECTOR', 'manage_options', 'menu-importador','menu_importador' );

add_submenu_page( 'menu-importador', 'Importar todo', 'Importar Todo', 'manage_options', 'importar_todo', 'importar_todo');
add_submenu_page( 'menu-importador', 'Sincronizar Stock', 'Sincronizar Stock', 'manage_options', 'sincronizar_stock', 'sincronizar_stock');
add_submenu_page( 'menu-importador', 'Sincronizar Individual', 'Sincronizar individual', 'manage_options', 'importar_individual', 'importar_individual');
/*add_menu_page('Theme page title', 'Theme menu label', 'manage_options', 'theme-options', 'wps_theme_func');
add_submenu_page( 'theme-options', 'Settings page title', 'Settings menu label', 'manage_options', 'theme-op-settings', 'wps_theme_func_settings');
add_submenu_page( 'theme-options', 'FAQ page title', 'FAQ menu label', 'manage_options', 'theme-op-faq', 'wps_theme_func_faq');
*/
}