mycred_badge_image

Description

This filter allows you to adjust the badge image element before it is rendered.

Available since version 1.7.6

Parameters

Param Type Required Description
$html string Yes

The badge image element.

$image int or string No

Either main when the main badge image is requested or the image level. Note that image levels start from zero and not one. So if your badge only has one level, that first level will have the ID zero.

$badge_object obj No

The myCRED_Badge object.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

Example 1: Add a Bootstrap tooltip to all badge images except for the main badge image.