After Shop Loop Item Title

0.0/5
<?php
add_action( 'woocommerce_after_shop_loop_item_title', 'bbloomer_show_free_shipping_loop', 5 );
 
function bbloomer_show_free_shipping_loop() {
	global $post;
	if (get_field('saletext', $post->ID )) {
		echo '<p class="shop-badge">' . get_field('saletext', $post->ID) . '</p>';
	}
}

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet was fetched automatically from WPDistro.cz projects.

Author

Tags

This snippet is untagged