A few weeks ago we proposed a new requirement that allows theme authors to use the
add_submenu_page functions. We gathered all the feedback and revised the initial requirement, the final form is as follows:
Themes can add a page under the Appearance menu using
add_theme_page. If they need to have sub-pages (like for example documentation, FAQs, donation link etc), then they are allowed to use
add_submenu_page, provided they follow these requirements:
- You can’t use
add_menu_page at the same time, choose one or the other.
- You are allowed to create only one (1) main page using
add_menu_page. The recommended maximum number of sub-menu pages (
add_submenu_page) is three (3).
add_submenu_page must be used only on the page created using
$position (priority) parameter must be
null or only occupy the spot above the Appearance page (59). Check the code example on how to set the correct priority.
- If you recommend plugins via TGMPA, you are required to use the
parent_slug configuration option (this should be the top-level page’s slug).
- Core Core is the set of software required to run WordPress. The Core Development Team builds WordPress. UI UI is an acronym for User Interface - the layout of the page the user interacts with. Think ‘how are they doing that’ and less about what they are doing. patterns must be used. You are not allowed to style the menu & submenu page links in any way. The admin color scheme must remain the same.
- Use only monochromatic icons. It must account for the admin color scheme.
- The title must be kept short and not include spam.
- Child themes are allowed to add one extra sub-page or remove the parent’s pages and add their own.
You can find the requirement & code examples under the Selling, credits, and links section.
Theme Check & the .org uploader have been updated to not block Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. these functions.