woocommerce_before_thankyou

woocommerce_before_thankyou

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_before_thankyou') is found 1 times:

  • /templates/checkout/thankyou.php line 28
     
    	<?php
    	if ( $order ) :
    
    		do_action( 'woocommerce_before_thankyou', $order->get_id() );
    		?>
    
    		<?php if ( $order->has_status( 'failed' ) ) : ?>
    
    			<p class="woocommerce-notice woocommerce-notice--error woocommerce-thankyou-order-failed"><?php esc_html_e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction. Please attempt your purchase again.', 'woocommerce' ); ?></p>