Home Forums Add-ons Options Page Adding submenu pages Reply To: Adding submenu pages

  • Hi,

    I’m still new to this and I faced the same problem. This is the code I add in function.php

            'page_title'  => 'Product Settings',
            'menu_title'  => 'Product Settings',
            'menu_slug' => 'product-settings',
            'parent_slug' => 'edit.php?post_type=product',
            'capability'  => 'manage_options',
            'position'  => false,
            'icon_url' => false,

    I follow the tutorial from here:

    When I change to this add_action( 'admin_menu', array( $this, 'adminMenuPages' ), 101) my page went blank.

    Appreciate any advise. Thanks.