Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafauysal/f99d50cebee6613322f534aed9c41e80 to your computer and use it in GitHub Desktop.
Save mustafauysal/f99d50cebee6613322f534aed9c41e80 to your computer and use it in GitHub Desktop.
<?php
add_action( 'plugins_loaded', function () {
$request_url = isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '';
if ( false !== strpos( $request_url, '/checkout' ) || false !== strpos( $request_url, '/finalizar-compra' ) ) {
add_filter( 'powered_cache_fo_disable', '__return_true' );
add_filter( 'powered_cache_fo_disable_css_combine', '__return_true' );
add_filter( 'powered_cache_fo_disable_css_minify', '__return_true' );
add_filter( 'powered_cache_fo_disable_js_combine', '__return_true' );
add_filter( 'powered_cache_fo_disable_js_minify', '__return_true' );
}
}, 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment