/* * Remove WooCommerce payment gateway instructions from thank you page, but leave enabled in emails. * Add it to your (child) theme's functions.php file. * Snippet is for cheque payment gateway. You can also use: * woocommerce_thankyou_bacs, woocommerce_thankyou_cod, woocommerce_thankyou_paypal etc. */ add_action( 'woocommerce_thankyou_cheque', 'ob_start', 0, 0 ); add_action( 'woocommerce_thankyou_cheque', 'ob_end_clean', PHP_INT_MAX, 0 );