[buddypress-trac] [BuddyPress Trac] #8588: Suggestion: use the "site-health" look & feel for BP Admin tabs
buddypress-trac
noreply at wordpress.org
Sat Nov 6 08:40:14 UTC 2021
#8588: Suggestion: use the "site-health" look & feel for BP Admin tabs
------------------------------------+---------------------
Reporter: imath | Owner: imath
Type: enhancement | Status: closed
Priority: normal | Milestone: 10.0.0
Component: Administration | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback |
------------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13137" 13137]:
{{{
#!CommitTicketReference repository="" revision="13137"
Use WordPress "site-health" style tabs for BP Admin tabs
The BuddyPress settings and tools screens admin tabs are now using the
"site-health" style. As aside from the "site-health" screens, the Privacy
screens are also using this tabs' style, we think using this style will
improve the way BuddyPress Admin screens integrate inside the WordPress
Administration.
We've put a back compatibility process for plugins extending the
BuddyPress settings or/and tools screens adding their custom tabs, so that
they are automatically converted into these new tabs. Plugin developers
are encouraged to progressively update the way they are adding these tabs.
- `bp_core_admin_tabbed_screen_header()` has been introduced to generate
the BuddyPress Admin screens headers using tabs.
- `bp_core_get_admin_settings_tabs()` has been introduced to return the
settings tabs, using the `'bp_core_get_admin_settings_tabs'` filter,
plugin developers can add their custom tab to the BuddyPress settings
screens.
- `bp_core_get_admin_settings_tabs()` has been introduced to return the
settings tabs. Using the `'bp_core_get_admin_settings_tabs'` filter,
plugin developers can add their custom tabs to the BuddyPress settings
screens.
- `bp_core_get_admin_tools_tabs()` has been introduced to return the tools
tabs. Using the `'bp_core_get_admin_tools_tabs'` filter, plugin developers
can add their custom tabs to the BuddyPress tools screens.
- To make sure BuddyPress generate the inline style to custom tabs, plugin
developers need to hook the `'bp_admin_submenu_pages'` action which passes
by reference an associative array keyed according to the screens to style
(`settings` or `tools`) and containing the plugin page hookname of their
custom screens.
Props oztaser
Fixes #8588
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8588#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list