Add custom admin menu to woocommerce

How to add new admin menu in WooCommerce?

Sean Green Asked on November 2, 2015 in WordPress.
Add Comment
3 Answer(s)
Best answer

The following code should provide you with a custom WooCommerce admin menu:

add_action(‘admin_menu’, ‘register_my_custom_submenu_page’);

function register_my_custom_submenu_page() {
add_submenu_page( ‘woocommerce’, ‘My Custom Submenu Page’, ‘My Custom Submenu Page’, ‘manage_options’, ‘my-custom-submenu-page’, ‘my_custom_submenu_page_callback’ );

function my_custom_submenu_page_callback() {
echo ‘<h3>My Custom Submenu Page</h3>’;
}We hope that this is what you are looking for!

John Rogers Answered on November 2, 2015.
Add Comment


Thank you for a great share, this was really helpful. Can we add this Menu on the top bar an not the side bar.?

Syed H

syhussaini Answered on February 20, 2017.
Add Comment

Hey John,

I was able to do it with a lot of ease, Admin Toolbar Menus Plugin.

Best Regards,
Syed H

syhussaini Answered on February 22, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.