Created
April 30, 2021 07:18
-
-
Save Musilda/5ce14df0b5ec6984332a9dcdc7d1b304 to your computer and use it in GitHub Desktop.
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
<?php | |
add_filter( 'woocommerce_thankyou_order_received_text', 'gunshop_received_text', 10, 2 ); | |
function gunshop_received_text( $text, $order ){ | |
$payment = $order->get_payment_method(); | |
if ( 'dobirka' === $payment ) { | |
$text = 'Děkujeme za objednávku, zboží zaplatíte až při převzetí.'; | |
} | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment