dozent_course_thumbnail( int $post_id, string $size = 'medium', bool $url = false )
ehco the course thumbnail
Description
If the course thumbnail is not attached with the course (Post), it will show a placeholder.
Example usage:
dozent_course_thumbnail();
Parameters
- $post_id
-
(int) (Required) Post ID | Course ID
- $size
-
(string) (Optional) Thumbnail Size
Default value: 'medium'
- $url
-
(bool) (Optional) if return only url instead of structured HTML
Default value: false
Return
(false|string)
Source
File: includes/template-functions.php
function dozent_course_thumbnail( $post_id = 0, $size = 'medium', $url = false ) { echo dozent_get_course_thumbnail( $post_id, $size, $url ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |