• I’m trying to override settings with ‘w3tc_saved_options’ using the code below

    add_action( 'w3tc_saved_options', 'alter_w3tc_config' );
    function alter_w3tc_config( $new_config ) {
    
           // Alter $new_config here
    
    }

    However, $new_config->_data is protected and I cannot manipulate anything.

    My situation is that I have W3TC running across several testing environments of the same site (local, dev, qa, uat, stage, prod). I need to dynamically set a rackspace cloud files container based on the current environment. Being able to manipulate the config array in master.php programmatically would be awesome.

    Any suggestions?

    http://wordpress.org/plugins/w3-total-cache/

  • The topic ‘Overriding Settings with 'w3tc_saved_options' action’ is closed to new replies.