Recent

wzkb_get_term_thumbnailfunction

wzkb_get_term_thumbnail()

Get the featured image for a KB taxonomy term.

Since: 3.1.0
Source: includes/functions.php line 350

Signature

function wzkb_get_term_thumbnail( $term, $size = ..., $attr = ... ): string;

Parameters

Type Name Description
int|\WP_Term $term Term ID or object.
string $size Image size slug.
array $attr HTML attributes for the img tag.

Returns

string — img tag HTML, or empty string if no image is set.