Skip to content

Instantly share code, notes, and snippets.

@MarceloGlez
Last active July 13, 2021 17:21
Show Gist options
  • Save MarceloGlez/901da1601a99d3282219f0431e227ef5 to your computer and use it in GitHub Desktop.
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)
/*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