Support » Plugin: Theme Check » regarding why add_menu_page() is REQUIRED instead of RECOMMENCED?

  • Jonathan



    I notice that in the Theme Check plugin when running tests, it displays that it is REQUIRED for add_theme_page() to be used in place of add_menu_page().

    I’m not understanding why add_menu_page() is REQUIRED instead of RECOMMENCED? Since add_menu_page() adds a top level menu item, whereas add_theme_page() only adds a submenu under the Appearance top level menu. So basically I don’t understand why its required instead of recommended, when WordPress Codex has that method available for wp developers to use? And the various themes sold on RocketThemes and ThemeForest have top level menu items to group and organize their option page menus.

    If my admin options I’m making for a theme have many option pages. And I want to group theme together under my own top level menu item, it will be very impractical to use add_theme_page(), which would make all my option pages submenus under the Appearance menu. I want to group my option pages together so the end user doesn’t get confused when using my theme and navigating the backend, its also a usability issue!

    Thank you for any help regarding my question! And THANK YOU for such a cool Theme Check plugin tool.. Its very helpful!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    Oddly enough, posting the same question here that you posted in the theme-reviewers mailing list two days ago will not get you any different answers.

    The same question = the same answer.

    Also, this isn’t RocketThemes or ThemeForest. Their rules do not apply here.



    Thank you for replying. I dont understand why you being mean!

    Even on the wordpress codex examples for creating options pages, it uses add_menu_page() :

    But I took my email off that mailing list because I wasn’t given a proper answer. One answer from someone on that mailing list was that if they knew karate that doesn’t mean they have to use it. That is not an answer and is sarcasm, when im trying to get an intelligent answer.

    In other words telling me in a sarcastic way that just because a method is there, doesn’t mean we have to use it, is not an answer. Top level menu items are good to group option pages for usability and organization.

    There is no where in the wordpress codex that says using add_theme_page() is required to use when making theme pages.

    But thank you anyway!

    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    The email conversation explained the issue clearly, I thought. You got several replies, including a long one from Chip with several codex links.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘regarding why add_menu_page() is REQUIRED instead of RECOMMENCED?’ is closed to new replies.