llms_featured_img( $post_id, $size )
Get the featured image
Contents
Return Return
(string)
Source Source
File: includes/llms.template.functions.php
function llms_featured_img( $post_id, $size ) { $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size ); return apply_filters( 'lifterlms_featured_img', '<img src="' . $img[0] . '" alt="' . get_the_title( $post_id ) . '" class="llms-featured-image wp-post-image">' ); }
Expand full source code Collapse full source code View on GitHub