webberzone.dev Recent

wzkb_get_term_thumbnail function

wzkb_get_term_thumbnail()

Get the featured image for a KB taxonomy term.

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

Signature

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

Parameters

TypeNameDescription
int|\WP_Term$termTerm ID or object.
string$sizeImage size slug.
array$attrHTML attributes for the img tag.

Returns

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