Created
May 9, 2020 18:14
-
-
Save Oscar-Abad-Folgueira/95be0c2d457ed252aa8be3aa417c0c1f to your computer and use it in GitHub Desktop.
Añadir texto en la parte superior del checkout de WooCommerce
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 Añadir texto en la parte superior del checkout de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-anadir-texto-o-html-en-la-parte-superior-del-checkout-finalizar-compra/ | |
*/ | |
add_action( 'woocommerce_before_checkout_form', 'add_checkout_top_text', 11 ); | |
function add_checkout_top_text() { | |
wc_print_notice( '<h3 style="color:red;">Solo te queda un paso más para finalizar la compra!!</h3>' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment