webberzone.dev Recent

wzkb_product_card_image filter

wzkb_product_card_image

Filter the image HTML inserted before the product card title.

Type: filter
Since: 3.1.0
Source: includes/frontend/class-display.php line 1076

Parameters

TypeNameDescription
string$htmlImage HTML. Empty by default.
\WP_Term$product_termProduct term object.

Usage

add_filter( 'wzkb_product_card_image', function($html, $product_term) {
    // ...
    return $html;
} );