[wp-trac] [WordPress Trac] #57278: Add filter to allow filtering of the must-use plugins list in the admin
WordPress Trac
noreply at wordpress.org
Tue Jun 27 15:51:52 UTC 2023
#57278: Add filter to allow filtering of the must-use plugins list in the admin
-------------------------------------------------+-------------------------
Reporter: nateallen | Owner: audrasjb
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.3
Component: Plugins | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info needs-dev-note commit | administration
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* keywords: has-patch has-unit-tests has-testing-info changes-requested =>
has-patch has-unit-tests has-testing-info needs-dev-note commit
* owner: (none) => audrasjb
* status: new => accepted
Comment:
I tested this filter using the following code:
{{{
function wporg_filter_plugins_list( $plugins ) {
unset( $plugins['all']['hello-dolly/hello.php'] );
return $plugins;
}
add_filter( 'plugins_list', 'wporg_filter_plugins_list' );
}}}
The plugin is removed from the list. Works fine.
Self assigning for `commit`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57278#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list