Skip to content

Instantly share code, notes, and snippets.

@Spellhammer
Created March 23, 2021 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Spellhammer/a368fd438c2d3bbf3d44ac845f14b06e to your computer and use it in GitHub Desktop.
Save Spellhammer/a368fd438c2d3bbf3d44ac845f14b06e to your computer and use it in GitHub Desktop.
is-thank-you-wooco-condition.php
if( function_exists('oxygen_vsb_register_condition') ) {
oxygen_vsb_register_condition('Is Thank You Page', array('options'=>array('true'), 'custom'=>false), array('=='), 'is_thank_you_callback', 'WooCo');
function is_thank_you_callback($value, $operator) {
if ( is_checkout() && !empty( is_wc_endpoint_url('order-received') ) ) {
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment