Custom page from wp admin area
I would like to display custom page from Wordpress admin area.
My plugin code is as follows:
add_action('admin_menu', 'apvr_admin_menu');
function apvr_admin_menu(){
add_menu_page(esc_html__(Virtual Reality Viever, APVR_TEXTDOMAIN), esc_html__(Virtual Reality Viever, APVR_TEXTDOMAIN), APVR_CAPABILITY, apvr_settings, apvr_settings_page, plugins_url('assets/menu.png', __FILE__));
}
function apvr_settings_page(){
include(includes/settings.php);
}
This displays a section within Wordpress admin area (Wordpress menu being on the left and top bar):
From this section I would like to have an option to redirect to another page (in which there will be no other elements like Wordpress menu etc, just my own content). and then option to return back to this page.
How could I achieve that?
Topic plugin-development plugins Wordpress
Category Web