-
-
Save Spellhammer/a368fd438c2d3bbf3d44ac845f14b06e to your computer and use it in GitHub Desktop.
is-thank-you-wooco-condition.php
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
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