WooCommerce : Add New Page and Link it to WordPress > Products.

Code

How to add a submenu item to the WooCommerce “Products” admin menu?

For Adding a submenu to any admin menu we will use “add_submenu_page” function.

add_submenu_page( string $parent_slug, string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', int $position = null )

Parameter Description

$parent_slug
(string) (Required) The slug name for the parent menu (or the file name of a standard WordPress admin page).

$page_title
(string) (Required) The text to be displayed in the title tags of the page when the menu is selected.

$menu_title
(string) (Required) The text to be used for the menu.

$capability
(string) (Required) The capability required for this menu to be displayed to the user.

$menu_slug
(string) (Required) The slug name to refer to this menu by. Should be unique for this menu and only include lowercase alphanumeric, dashes, and underscores characters to be compatible with sanitize_key().

$function
(callable) (Optional) The function to be called to output the content for this page.
Default value: ”

$position
(int) (Optional) The position in the menu order this item should appear.
Default value: null

Documentation

So We must know the $parent_slug for adding submenu. for adding submenu to p-roduct menu in admin screen we must know the parent slug of product menu.

We can add a submenu item to the “WooCommerce” menu using “add_submenu_page” and ‘woocommerce’ for $parent_slug (using ‘admin_menu’ hook), but for Products menu ‘woocommerce’ $parent_slug can’t be used.

For adding submenu to Woocomerce product menu we have to use ‘edit.php?post_type=product’ as parent slug.

For example:

function ProductsSubPage() {
  add_submenu_page('edit.php?post_type=product','Custom Page Title','New Custom Title','edit_products','new_page_slug','ProductsSubPageCallback', 99 );
}
function  ProductsSubPageCallback() {
  echo '<div class="wrap"><h1 class="">New Custom Title</h1>';
  // add Content here
  echo '</div>';
}
add_action('admin_menu','ProductsSubPage',99);

//output
null

Enjoy

Related reading:

Shiv Kumawat

Executive Director & CEO

Shiv Kumawat is the CEO of Eoxys IT Solution LLP, the Jaipur-based IT company he has led since 2009. An AI & IT Solutions Consultant with 16+ years of experience, he works with startups and enterprises to turn ideas into market-ready SaaS platforms, mobile apps and AI-driven solutions. His team has delivered 700+ projects across SaaS, mobile and web apps, automation and AI. He previously served as Chief Technology Officer for a US company.

Latest Posts

Telemedicine app development cost in the USA 2026 banner: Eoxys blue panel with a doctor in scrubs and headset on a video consultation

Telemedicine App Development Cost in the USA (2026)

A telemedicine visit in the USA only works when four things line up: the clinician is licensed in the state…

Shafeeq Khan
November 22, 2026
Colour photograph illustrating the Eoxys blog post 'AI MVP Development Cost in 2026: What You Pay and Why', used as the featured image for ai mvp development cost.

AI MVP Development Cost in 2026: What You Pay and Why

Founders asking about AI MVP development cost usually want one number. The honest answer is a range, because an AI…

Shafeeq Khan
November 22, 2026
Taxi app development cost in Saudi Arabia 2026 banner: Eoxys blue panel with a phone showing turn-by-turn navigation on a car dashboard

Taxi App Development Cost in Saudi Arabia (2026)

A ride in Saudi Arabia only counts as a completed trip when four things hold at once: a licensed, verified…

Shafeeq Khan
November 21, 2026
,

Leave a Reply

Your email address will not be published. Required fields are marked *