Last active
February 8, 2020 00:00
-
-
Save clifgriffin/2ea0a0133f889ade2f39a95ccb869b58 to your computer and use it in GitHub Desktop.
Fix bug with NextGen Gallery and Checkout for WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include in functions.php file or with your favorite snippets plugin | |
// Do NOT include opening PHP tag above (<?php) | |
add_filter( | |
'run_ngg_resource_manager', function( $valid_request ) { | |
if ( ! empty( $_GET['wc-ajax'] ) ) { | |
return false; | |
} | |
return $valid_request; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment