• Resolved cooltronic

    (@cooltronic)


    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 6 months, 3 weeks ago by cooltronic.

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

  • The topic ‘Disable Oxygen avif-express plugin on Oxygen Editor’ is closed to new replies.