Link to a new page into a plugin

I am developing a new plugins, I added a new admin page menu with:

function ca_admin_link()
{
add_menu_page(
‘Checklist Artistas’,
‘Checklist Artistas’,
‘checklist-artistas/includes/ca-checklist-acp-page.php’
);

}

add_action( ‘admin_menu’, ‘ca_admin_link’ );

Everything ok, an item menu is shown and I can access to ca-checklist-acp-page.php but en this page I want to link to another page (ca-edit-checklist-acp-page.php) into same directory.

Using
admin_url(‘admin.php?page=checklist-artistas/includes/ca_edit_checklist_acp-page.php’)

but when I try to access to that new page I get “Yoy do not have permission to access to this page”

How to give admin permissions to ca_edit_checklist_acp-page.php?

Thank you

Read more here:: Link to a new page into a plugin

Leave a Reply

Your email address will not be published. Required fields are marked *