Filter: sensei_course_placeholder_image_url

apply_filters( 'sensei_course_placeholder_image_url', $img_html, $course_id, $width, $height ) → {string}

Filter the image HTML when no course image exists.

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.

Since:
  • 1.12.0 Added $course_id, $width, and $height.
Source:
Returns:

Course image HTML.

Type
string