[wp-trac] [WordPress Trac] #47225: Add new actions to Site Health navigation

WordPress Trac noreply at wordpress.org
Sat Apr 17 01:12:39 UTC 2021


#47225: Add new actions to Site Health navigation
-------------------------------------------------+-------------------------
 Reporter:  ramiy                                |       Owner:  Clorith
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Site Health                          |     Version:  5.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  site-health has-screenshots has-     |     Focuses:
  patch                                          |  administration
-------------------------------------------------+-------------------------
Changes (by Clorith):

 * owner:  (none) => Clorith
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50764" 50764]:
 {{{
 #!CommitTicketReference repository="" revision="50764"
 Site Health: Support custom sub-menus and pages.

 Allow developers to extend the Site Health screen with their own custom
 navigation tabs and pages.

 This implements a new filter, `site_health_navigation_tabs`, which takes
 an associated array of tab identifiers/slugs, and tab labels, allowing
 developers to add their own subpage to the Site Health interface as new
 tabs.

 To output a custom page, or add to an existing page, the
 `site_health_tab_content` action is triggered whenever the `tab` query
 argument is present and not empty. This action includes the current tab as
 its argument, which a developer would match against to only output content
 when relevant.

 Props ramiy for initial patch.
 Fixes #47225.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47225#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list