WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 7 weeks ago

#15800 new enhancement

Adding tabs to the "Edit Site"-pages in Network Admin

Reported by: PuffyThePirateBoy Owned by:
Milestone: Future Release Priority: normal
Severity: minor Version: 3.1
Component: Networks and Sites Keywords: has-patch dev-feedback
Focuses: accessibility, administration, multisite Cc:

Description

There are four tabs in the Network Admin > Edit Site pages. These are statically defined as an array in the files:

wp-admin/network/site-info.php
wp-admin/network/site-options.php
wp-admin/network/site-themes.php
wp-admin/network/site-users.php

It would be nice if there was a filter that allowed us to add more tabs to this bar. This would enable us to add more user friendly, site specific, option pages for super administrators.

Attachments (3)

15800.patch (6.1 KB) - added by c3mdigital 3 months ago.
tab-tester.php (1.5 KB) - added by c3mdigital 3 months ago.
Test case plugin add new tab plugin
0001-Enhance-tabs-15800.patch (7.3 KB) - added by Bueltge 7 weeks ago.

Download all attachments as: .zip

Change History (19)

comment:1 ocean903 years ago

  • Version set to 3.1

See #15593. There was already a patch from PeteMall.

comment:2 westi3 years ago

This is a great idea for the future.

comment:3 westi3 years ago

  • Milestone changed from Awaiting Review to Future Release

comment:4 PuffyThePirateBoy3 years ago

In #15593 this enhancement was requested as part of an other issue (missing previously existing hooks). However, the patch only applies to the other issue leaving the enhancement request overlooked.

comment:5 bananastalktome2 years ago

  • Cc bananastalktome@… added

+1 on this request. It would be great to be able to add additional tabs to the page. Any chance of this being revisited (or guidance for others who may want to submit a patch for this)?

comment:6 cfoellmann10 months ago

I could really use such a hook.
Maybe I have some time to look into it soon.

comment:7 cfoellmann10 months ago

  • Cc foellmann@… added

comment:8 gogger8 months ago

  • Cc gogger added

comment:9 Bueltge5 months ago

  • Cc frank@… added

comment:10 toscho5 months ago

  • Cc info@… added

comment:11 cfoellmann5 months ago

Any idea for a starting point? Crude idea how we should tackle this?

comment:12 cfoellmann5 months ago

Whoever wants to pitch in have a look at this repo https://github.com/cfoellmann/WordPress-network-tabs - I will give you push access if you reply here: https://github.com/cfoellmann/WordPress-network-tabs/issues/1

comment:13 nacin3 months ago

  • Component changed from Network Admin to Networks and Sites
  • Focuses administration added

comment:14 c3mdigital3 months ago

Found this ticket working on extending ourStream plugin to work with multisite. We need to be able to add a settings page for each site on the network so that when network activated individual site settings can be updated via the network admin menu.

I think we should stick with the scope of this ticket and while it would be nice to have a generic way to add tabs to any page my patch focuses on extending the Edit- site pages tabs and consolidating the repeated hard coded tabs html into a function that can be filtered to add the extra tab. I've also added a test case plugin that tests adding a new tab. The patch needs to be refined as it's more of a test of concept. Please provide feedback.

c3mdigital3 months ago

c3mdigital3 months ago

Test case plugin add new tab plugin

comment:15 rhurling7 weeks ago

  • Keywords has-patch dev-feedback added

comment:16 Bueltge7 weeks ago

  • Focuses accessibility added

I have enhance the patch from @c3mdigital for a little bit codex and advanced ARIA.

See also on this commit https://github.com/cfoellmann/WordPress/commit/141f5b8944355c9c544da3bae7feefdaf2f461b5

Last edited 7 weeks ago by Bueltge (previous) (diff)
Note: See TracTickets for help on using tickets.