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