Submenu Page under Settings in Admin Panel

enter image description here

I have a quick question, I am wanting to add in a new submenu to the ‘Tools’ section on my Admin Panel but without modifying any of the original WordPress files such as (functions.php, etc..) files. So I’m unable to use the functions.php file to input the function call directly.

Here is the file directory:

Here is the code that I am using:

 * Created by PhpStorm.
 * User: smajlovs
 * Date: 2019-08-14
 * Time: 10:44

* Add in a new submenu to the 'Tools.php' settings
function admin_menu() {
    add_action('admin_menu', 'register_my_custom_submenu_page');

    function register_my_custom_submenu_page() {
            'Submenu Page',
            'My Custom Submenu Page',
            'my_custom_submenu_page_content' );

    function my_custom_submenu_page_content() {
            <div class="wrap">
            <h2>Page Title</h2>

Could anyone let me know why it’s not showing up under ‘Tools’ in the admin panel?

Read more here:: Submenu Page under Settings in Admin Panel

Leave a Reply

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