Opened 11 months ago
Last modified 11 months ago
#61026 new enhancement
There is no easy way to add custom states to site-info.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 6.5 |
Component: | Networks and Sites | Keywords: | |
Focuses: | multisite | Cc: |
Description (last modified by )
On /wp-admin/network/sites.php
with the usage of hook listed below we can add new states to the page (see attachment).
$views = apply_filters( "views_{$this->screen->id}", $views );
@wp-admin/includes/class-wp-list-table.php
line 515 and$site_states = apply_filters( 'display_site_states', $site_states, $_site );
@wp-admin/includes/class-wp-ms-sites-list-table.php
line 671
The issue is that on wp-admin/network/site-info.php
there is no way to add our own states to the core states. There is no filter that grants access to the variable that contains the data which WP uses to render the state fields with. This should be looked at. For it makes zero sense to be able to add new states elsewhere but not on page wp-admin/network/site-info.php
.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Please ignore the last two sentences in my original post. These are topics for new tickets that I forget to delete prior to submitting