• Resolved Maya

    (@tdgu)


    Hi,
    I encounter an issue trying to access this option programmatically, i couldn’t figured out a way.

    The ‘postprocessor’ is being used within Minify class, there is a comment right above it which say:

    // do any post-processing (esp. for editing build URIs)

    Which is great, just want i need, i callback function so i can change the minified content before is being saved on the server.

    But how to i set this option programmatically?! Apparently there’s no way to do that. The Minify class is being invoked in Minify_MinifiedFileRequestHandler and the options array is being created at function process() through $serve_options variable.

    There is an invocation on the same function on $this->_config->get_array( 'minify.options' ) but i either don’t see a way to add a default option to ‘minify.options’

    Thanks for your help !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdgu,

    Thank you for your inquiry and I am happy to assist you with this.
    One of the ways to modify minify.options value is in your W3 Total Cache configuration file (wp-content/w3tc-config/master.php file).
    I hope this helps and please let us know if there is anything else we can help you with.

    Thread Starter Maya

    (@tdgu)

    Hi @vmarko,
    Thanks for your response.
    This isn’t actually a solution for me, as i intend to use that in a custom plugin, so i don’t have access on the client wp-content/w3tc-config/master.php file.
    Is there any other way do that programmatically?

    Thanks for your help !

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdgu,

    Unfortunately, this cannot be done in a current version of the plugin. However, we’ve added an issue in our GitHub public repository for this and this will be added for future release. Please make sure to checkout the GitHub issue regularly so you can be up to date with this.
    Thank you for bringing this to our attention and thank you for your patience.

    Thread Starter Maya

    (@tdgu)

    Hi @vmarko,
    Hopefully this will be implement sometime soon.

    Thanks for your help !

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdgu,
    You are most welcome.
    We would really appreciate if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users. Thank you for your help!

    Thread Starter Maya

    (@tdgu)

    Hi,
    Checking with the status of this implementation, as the issue has not changed since you created.

    Thanks

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tdgu

    Sorry for the late reply!
    This issue was fixed in 0.12.0 Release.
    Also, there is a new 0.13.0 release with more fixes.
    Thank you for your patience!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘‘postprocessor’ option usage’ is closed to new replies.