Title: Adding a Dokan Submenu
Last modified: December 1, 2021

---

# Adding a Dokan Submenu

 *  Resolved [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/adding-a-dokan-submenu/)
 * Hi, I’m trying to add submenu to Dokan in my plugin. However, I couldn’t add 
   it. Where am I doing wrong? Can you help me ?
 *     ```
       class Admin { 
           public function __construct() { 
               //add_action( 'dokan_admin_menu', array( $this, 'refund_info_template' ) );
               add_action( 'admin_menu', array( $this, 'refund_info_template' ) );
   
           }
   
           public function customer_relationship() {
               add_submenu_page( 'dokan', __( 'Customer Relationship ', 'cr' ), __( 'Customer Relationship', 'cr' ), 'manage_options', 'customer-relationship', array( $this, 'customer_relationship_menu_context' ), 5);
           }
           public function customer_relationship_menu_context() {
               echo 'defined';
           }
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/adding-a-dokan-submenu/#post-15123500)
 * Hello ,
    I solved the problem but there is something else. Even though I changed
   the priority order (99), the menu remains constant. What can I do ? `add_submenu_page('
   dokan', __( 'Customer Relationship ', 'cr' ), __( 'Customer Relationship', 'cr'),'
   manage_options', 'customer-relationship', array( $this, 'customer_relationship_menu_context'),
   99);`
 * Not: For adding i used dokan_admin_menu hook.

Viewing 1 replies (of 1 total)

The topic ‘Adding a Dokan Submenu’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [loopforever](https://wordpress.org/support/users/loopforever/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/adding-a-dokan-submenu/#post-15123500)
 * Status: resolved