[wp-trac] [WordPress Trac] #64665: Add mu-plugins loading filter

WordPress Trac noreply at wordpress.org
Wed Feb 18 05:30:38 UTC 2026


#64665: Add mu-plugins loading filter
-----------------------------+-----------------------------
 Reporter:  dd32             |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Bootstrap/Load   |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 There are some occasions where having the ability to filter the mu-plugins
 being loaded would be useful.

 Regular plugins and network activated plugins can be filtered through
 option filters, but the mu-plugins can't, as no option exists.

 In my case, I'd like to avoid loading any plugin content via a sunrise.php
 file, before a `wp-env` environment is fully configured, but without
 having to have to start the environment without mappings and then add them
 in.

 The attached PR adds filters to `wp_get_mu_plugins()`,
 `wp_get_active_network_plugins()`, `wp_get_active_and_valid_plugins()`,
 and `wp_ get_active_and_valid_themes()` for good measure.

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


More information about the wp-trac mailing list