soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 30 forks source link

Add filter to allow canceling loading of Oxygen #1041

Open benfavre opened 4 years ago

benfavre commented 4 years ago

I don't need oxygen to run on my Rest API endpoints. You do work too early in the plugin so even if I deregister the plugin in the "option_active_plugins" your stuff is allready loaded. I have added a filter to your root "functions.php" file.

$shouldLoad = apply_filters('load_oxygen', true);
if (!$shouldLoad) {
    return;
}

image

Please consider adding it to next release, thanks.

KarzanTT commented 4 years ago

+!

wala0003 commented 2 years ago

+1