Utilisez ce hook si vous souhaitez ajouter un texte d'information supplémentaire après le prix d'un produit sur la page de la boutique / catégorie.
Exemple :
add_filter('woocs_price_html_tail', function($price_html)
{
return $price_html . "<strong>Hello World!</strong>";
});
Combinez-le avec du code CSS (dans style.css) si nécessaire :
.woocs_price_html_tail{
display: none;
}
body.single-product .woocs_price_html_tail{
display: block;
}
body.single-product .related .woocs_price_html_tail{
display: none;
}