Skip to content

Instantly share code, notes, and snippets.

@mhackersu
Created November 27, 2018 21:26
Show Gist options
  • Save mhackersu/0520952f4fd6f57c05851aa8a57c93f8 to your computer and use it in GitHub Desktop.
Save mhackersu/0520952f4fd6f57c05851aa8a57c93f8 to your computer and use it in GitHub Desktop.
/*
* 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