PHP code example of tombroucke / zoocommerce-optimizer

1. Go to this page and download the library: Download tombroucke/zoocommerce-optimizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tombroucke / zoocommerce-optimizer example snippets


add_filter('zoocommerce_optimizer_remove_admin_features', function ($removeFeatures) {
    return array_filter($removeFeatures, function ($feature) {
        return $feature !== 'analytics';
    });
});