Expert Group of programming
Loading...

Add submenu page in woocommerce menu

Posted by : Heycode Tech | Posted in : woocommerce, wordpress | Sep 24,2015 | 0 comments

Sometime, we need to add the submenu page in woocommerce menu.
woo-submenu-page
Here this article describe,how to add the new sub menu in woocommerce menu.

 add_action('admin_menu', 'heycodetech_submenu_page');

function heycodetech_submenu_page() {
	add_submenu_page( 'woocommerce', 'Heycodetecch', 'Heycodetecch', 'manage_options', 'woo-heycodeteh', 'heycodetecch_callback' );
}

function heycodetecch_callback() {
	
	echo '< div class="wrap">< div id="icon-tools" class="icon32">< /div >';
		echo '< h2 > My Heycodetecch Submenu Page < / h2 >';
	echo '< / div>';
 
}

How to use this code


Copy and past this code in functions.php file and it will create a new submenu page in woocommerce with named : Heycodetech : and now in the function : heycodetecch_callback : you can describe this sub page functionality .

For more detailed information about this hooks, you can visit : http://codex.wordpress.org/Function_Reference/add_submenu_page
Now you can ask me any question from me,I will be available and try to provide the solution.

Waiting your response.

Tags:

Author information - Heycode Tech

Every world can ask question and my website registered user give the suggestion.

See all posts by Author

Connect to author

About us

Heycodetech is a platform where you can ask any questions related to the programming like PHP,jQuery, MYSQL,HTML , CSS and moreHere is the Expert group of programming.