apply_filters( 'sensei_course_image_html', $img_html, $course_id, $width, $height, $used_placeholder ) → {string}
Filter the HTML for the course image. If not blank, this will be surrounded with an anchor tag linking to the course.
Parameters:
Name | Type | Description |
---|---|---|
$img_html |
string | Course image HTML. |
$course_id |
int | Course ID. |
$width |
int | Requested image width. |
$height |
int | Requested image height. |
$used_placeholder |
bool | True if placeholder was used in the generation of the image HTML. |
- Since:
- 1.12.0
- Source:
Returns:
Course image HTML.
- Type
- string