This work 🙂
function ca_admin_link()
{
// My code goes here
add_menu_page(
'Checklist Artistas', // Title of the page
'Checklist Artistas', // Text to show on the menu link
'manage_options', // Capability requirement to see the link
'checklist-artistas/includes/ca-checklist-acp-page.php' // The 'slug' - file to display when clicking the link
);
// This is the first page that is displayed when the menu is clicked
add_submenu_page(
null,
'Checklist Artistas',
'Checklist Artistas',
'manage_options',
'ca_edit_checklist_acp_page.php',
'ca_details_page_callback'
);
}
add_action( 'admin_menu', 'ca_admin_link' );
function ca_details_page_callback() {
echo "Hola";
}