Last active
September 16, 2020 23:57
-
-
Save jaworowicz/71500a891cf51c91fc2e982dd86862d6 to your computer and use it in GitHub Desktop.
Wyświetl produkty na stronie potwierdzenia zamówienia | Instrukcja: https://jaworowi.cz/?p=15220
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 | |
/** | |
* @snippet Wyświetl produkty na stronie potwierdzenia zamówienia | |
* @how-to https://jaworowi.cz/?p=15220 | |
* @author Jakub Jaworowicz | |
* @testedwith WooCommerce 5.5.1 | |
*/ | |
/* W pliku functions.php lub wtyczce funkcyjnej - wklej bez <?php na początku! */ | |
add_action( 'woocommerce_thankyou', 'jcz_woo_thankyou' ); | |
function jcz_woo_thankyou() { | |
echo '<h2>Te produkty zainsteresowały, innych - sprawdź je</h2>'; | |
echo do_shortcode( '[products ids="14990,14967,14589"]' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment