WordPress.org

Ready to get started?Download WordPress

Forums

Theme-Check
regarding why add_menu_page() is REQUIRED instead of RECOMMENCED? (4 posts)

  1. groovingtiger
    Member
    Posted 9 months ago #

    Hello,

    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!

    http://wordpress.org/extend/plugins/theme-check/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 9 months ago #

    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.

    http://lists.wordpress.org/pipermail/theme-reviewers/2013-July/013945.html

    The same question = the same answer.

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

  3. groovingtiger
    Member
    Posted 9 months ago #

    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() :

    http://codex.wordpress.org/Creating_Options_Pages

    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!

  4. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic