Created
November 27, 2018 21:26
-
-
Save mhackersu/0520952f4fd6f57c05851aa8a57c93f8 to your computer and use it in GitHub Desktop.
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
/* | |
* External domains for add to cart redirect | |
*/ | |
add_filter( 'allowed_redirect_hosts', function( $hosts ) { | |
$hosts[] = 'staging.energyefficientsolutions.com'; // Add your external domain in here. | |
/* No http/https schema prefix. Duplicate for additional allowed domains */ | |
return $hosts; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment