- Category : Wordpress
- Location : Chandigarh
- Posted On : Jun 26, 2017
- Posted by : Guley
Create custom menu and sub-menu in worpress
add_menu_page( 'Setting' , 'Setting' , 'manage_options' , __FILE__ , 'setting');
add_submenu_page( __FILE__ , 'Submenu1', 'Submenu1' , 'manage_options' , __FILE__ . 'Submenu1' , 'Submenu1');
echo "Submenu1 Page";
/* Sub Menu*/
echo "Setting Page";
Add Your Answer
When answering a question please:
- Read the question carefully.
- Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
- If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.