542 posts
  • Exclusive Author
  • Europe
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
ThemesFever says

Hi there,

At the moment I’m developing a new WordPress theme, and recently checked the code using the Theme Check plugin and it says I shouldn’t use the tag ‘add_menu_page’ to add admin pages. It says that I should use the ‘add_theme_page()’ tag instead.

The problem is that my theme options include subpages, and the ‘add_theme_page’ tag, doesn’t support them.

What should I do? Maintain the ‘add_menu_page’ tag or replace it with the suggested tag?

Thanks,

1012 posts
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Egypt
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Sold between 10 000 and 50 000 dollars
+1 more
wizylabs says

add_menu_page is absolutely fine! totaly acceptable here.

80 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
dpthemes says

No, add_menu_page is fine. I think most authors use it as it allows for more flexibility and doesn’t make the Appearance submenu cluttered

542 posts
  • Exclusive Author
  • Europe
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
ThemesFever says

Thank you! :bigsmile:

4 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
Drumbeat24 says

How about now people?

by
by
by
by
by
by