Woocommerce hook action – target specific product category
-
Hook action below worked fine but I only want to target ‘product categories=food’ not all products. Site is http://beta.projectagileco.com/index.php/menu/
Any help will be greatly appreciated.
// Insert text below the Food Item title
function add_featured_text_example() {
// Echo out content
echo ‘‘ . esc_html__( ‘Serves 15 People’, ‘storefront’ ) . ‘
‘;
}
add_action( ‘woocommerce_after_shop_loop_item_title’ , ‘add_featured_text_example’ ); -
Hi,
You have reached WordPress.com forum. Here all the queries related to bogs/sites hosted at WordPress.com are answered.
Your site is hosted somewhere else using WordPress.org software.
WordPress.com and WordPress.org are different from each other. To understand the difference, refer to this page: https://en.support.wordpress.com/com-vs-org/Your question is about WooCommerce, you will get help at: https://wordpress.org/support/plugin/woocommerce/
– bests,
- The topic ‘Woocommerce hook action – target specific product category’ is closed to new replies.