plugins – How do I add a custom sub menu menu under Woo-commerce marketing?

Question

I am developing a plugin and I want to add a menu under the woo-commerce marketing menu like the coupons and overview submenus. How am able to archieve that?

I did this but it didn’t work.

add_submenu_page(
    'admin.php?page=wc-admin&path=/marketing',
     __( 'Sub Menu' ),
    'manage_woocommerce',
    'sub-menu-slug',
    'sub_menu_page_callback'
);

0
Isakiye Afasha 5 months 2022-03-11T03:41:58-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse