Disable Oxygen avif-express plugin on Oxygen Editor

[ad_1]

function disable_avif_express_for_oxygen($plugins) {
    // Check if any of the specified GET parameters are set
    if (isset($_GET['ct_builder']) || isset($_GET['ct_inner']) || isset($_GET['ct_template']) || isset($_GET['oxygen_iframe']) || isset($_GET['action'])) {
        // Specify the plugin directory and main file for the plugin you want to disable
        $plugin_to_disable="avif-express/avif-express.php";

        // Search for the specified plugin in the list of active plugins
        $key = array_search($plugin_to_disable, $plugins);
        // If found, unset it from the active plugins array
        if (false !== $key) {
            unset($plugins[$key]);
        }
    }

    // Return the modified array of active plugins
    return $plugins;
}
// Add the above function to the 'option_active_plugins' filter
add_filter('option_active_plugins', 'disable_avif_express_for_oxygen');

It can generate error 500 or break the Oxygen Page Structure Tab, when we add this shortcode your plugin works perfectly on Oxygen powered Websites.

  • This topic was modified 3 hours, 26 minutes ago by cooltronic.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer