I added a filter for option_active_plugins to keep most plugins from loading on an admin page. Confirmed to be on the right page and to be returning a properly altered array, but it’s having no effect on which plugins are being included on the page.
Tried high numbers for filter priority. No effect. Any ideas?
OK, duh: I needed to have my plugin in the /mu-plugins dir to make its filter available early enough for
function wp_get_active_and_valid_plugins()
.