WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 6 months ago

#36372 new enhancement

Show Plugins Active at the Site Level

Reported by: mrjarbenne Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.2
Component: Networks and Sites Keywords:
Focuses: ui, administration, multisite Cc:
PR Number:

Description (last modified by SergeyBiryukov)

[35151] added a new feature to multisite installs to show the Network Active plugins at the subsite level (#20104). Although this fixed one problem, it has created an issue where the Network Admin has no simple way to discern which plugins -- in addition to the Network Active list -- are activated at the site level.

Previously the active plugins filter at a sub-site level could be used to show the sub-site activated plugins. In order to find out which plugins are subsite activated now, the Network Admin has to scan through all the plugins available on the Network, looking for the small "deactivate" link, amidst the Network Active and Inactive plugins.

https://cldup.com/EM7DN3pStf.png

On the subsite level, it would be helpful to be able to toggle a filter to view the "Site Active" plugins, in addition to the "Network Active" plugins, particularly in busy multisites where a large number of plugins are being used in specific ways on small sub-sections of the network.

This would mimic the additional filters available at the network level, where plugins can be filtered by Must-Use, Drop-ins, Recently Active etc,

https://cldup.com/Lq7ubQ5PDx.png

expanding on the existing Sub-site filters:

All, Active, Inactive

https://cldup.com/zP5v9BqxRc.png

I recognize there is a filter to regress to the the previous behaviour, but I'm looking for the best of both worlds.

Change History (4)

#1 @SergeyBiryukov
4 years ago

  • Description modified (diff)

This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.


4 years ago

#3 @jeremyfelt
4 years ago

Hi @mrjarbenne, thanks for the ticket!

I recognize there is a filter to regress to the the previous behaviour, but I'm looking for the best of both worlds.

Aren't we all. :)

I agree that not being able to filter out network active plugins by default is annoying. It would be nice for this to be able to extend this a bit, though possibly as a plugin instead.

The views_plugin filter can be used to add "Site Active" or "Network Active" as a status, but neither are actually a recognized plugin_status yet.

It looks like a filter could fit right before totals are calculated that would allow the injection/manipulation of more arbitrary status selections.

I know that I would specifically use this filter to provide a list of "Global Active" plugins in the network admin for multi-network.

#4 @mrjarbenne
4 years ago

Hi @jeremyfelt. @r-a-y pointed me in the direction of this plugin, that is working well for my uses. It hadn't been updated in a while, but seems to have aged gracefully, so we are working with it now. https://github.com/r-a-y/blue-network-plugins

Cheers.

Note: See TracTickets for help on using tickets.