[wp-trac] [WordPress Trac] #45954: Add a extra_tablenav() method to WP_MS_Sites_List_Table

WordPress Trac noreply at wordpress.org
Sat Jan 12 02:58:49 UTC 2019


#45954: Add a extra_tablenav() method to WP_MS_Sites_List_Table
---------------------------------------+-----------------------------
 Reporter:  pbiron                     |      Owner:  (none)
     Type:  feature request            |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Networks and Sites         |    Version:
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 With blogmeta landing in 5.1-beta1 (#37923 and #40229) it would be really
 sweet if `WP_MS_Sites_List_Table` had an `extra_tablenav()` method which
 fired `restrict_manage_sites` and `manage_sites_extra_tablenav` actions
 (analogous to `WP_Posts_List_Table`'s
 [[https://developer.wordpress.org/reference/hooks/restrict_manage_posts/|restrict_manage_posts]]
 and
 [[https://developer.wordpress.org/reference/hooks/manage_posts_extra_tablenav/|manage_posts_extra_tablenav]]).

 This would allow plugins to add dropdowns (or other UI components) to
 limit the sites shown in the list table to those that have specific values
 in blogmeta (just like is now possible with other `WP_List_Table` sub-
 classes).

 I'm currently developing a large multisite (2000-3000 sites).  The main
 site will serve as a directory of places of worship (searchable on the
 front-end by denomination and various other characteristics; blogmeta is
 going to make that searching **much** easier than it otherwise would have
 been!).  Each place of worship will be a site in the network.

 Having `WP_MS_Sites_List_Table::extra_tablenav()` would make the site
 admin's job a lot easier, as it would allow them to perform some bulk
 action on just those sites with a specific denomination, etc.  I'll add a
 screenshot of a mockup once I finish creating this ticket.

 I raised the possibility of this feature a few weeks ago in
 [[https://wordpress.slack.com/archives/C03BVB47S/p1546205814005300|#core-
 multisite]] at a time when I didn't think blogmeta was going to land.  I
 know that technically now that 5.1-beta1 is out there are not supposed to
 be enhancements or feature requests added...but I'm hoping we can bend the
 rules a little and get this in beta2.  If that is possible, I can have a
 patch ready in a few days.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45954>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list