I have a hook that looks like this:
add_action( 'woocommerce_thankyou', 'thank_you_page', 90, 1 );
function thank_you_page( $order_id ) {
//target woocommerce thank you page.
}
This works well, however I now need the opposite. All pages that don't use this hook...
Can I embed the above into an IF statement and then use the ELSE statement to resolve?