Title: [Plugin: W3 Total Cache] [Feature Request] Filter on $cOptions (code attached)
Last modified: August 20, 2016

---

# [Plugin: W3 Total Cache] [Feature Request] Filter on $cOptions (code attached)

 *  [setola](https://wordpress.org/support/users/setola/)
 * (@setola)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-feature-request-filter-on-coptions-code-attached/)
 * Hello Frederick,
 * for some reasons I have to minify some js that are symlinked on the server. I’ve
   tried to find some settings in the admin page but I failed 🙂
    Can it be possible
   to have a way to add the real path into the allowed paths of Minify?
 * For info here’s the code I’ve edited to make it work:
 * line 29 of ./lib/Minify/Minify/Controller/MinApp.php
 *     ```
       $cOptions = apply_filters('w3tc_custom_minapp_options',array_merge(
                   array(
                       'allowDirs' => '//'
                       ,'groupsOnly' => false
                       ,'groups' => array()
                       ,'maxFiles' => 100
                   )
                   ,(isset($options['minApp']) ? $options['minApp'] : array())
               ));
       ```
   
 * and then added these lines to my functions.php
 *     ```
       add_filter('w3tc_custom_minapp_options', 'allow_dirs', 10, 1);
       function allow_dirs($arr){
       	$arr['allowDirs'] = array_merge((array)$arr['allowDirs'], array('/usr/local/fastbooking/'));
       	return $arr;
       }
       ```
   
 * (I know this is really a workaround… but it works for now 🙂 )
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

The topic ‘[Plugin: W3 Total Cache] [Feature Request] Filter on $cOptions (code 
attached)’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [setola](https://wordpress.org/support/users/setola/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-feature-request-filter-on-coptions-code-attached/)
 * Status: not resolved