plugins – How do I add a custom sub menu menu under Woo-commerce marketing?
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' );