Last active
July 13, 2021 17:21
-
-
Save MarceloGlez/901da1601a99d3282219f0431e227ef5 to your computer and use it in GitHub Desktop.
Añade fecha de actualización de producto en página de producto en Woocommerce (Agregar líneas de código en function.php del child theme)
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
/*Añade fecha a producto único*/ | |
add_action( 'woocommerce_single_product_summary','bloomer_echo_product_date',25 ); | |
function bloomer_echo_product_date() { | |
if ( is_product() ) { | |
echo the_date('', '<span class="date_published"> 📂 Actualizado: ', '</span>', false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment