Function:
mp_core_the_featured_image();
Purpose:
This function returns the featured image of a post.
Usage Example:
mp_core_the_featured_image( $post_id, $width, $height, $before, $after);
Parameters:
$post_id (string) The ID of the post who’s featured image we want
$width (int) The width of the image we want in pixels. Defaults to 600
$height (int) The height of the image we want in pixels. Defaults to 600
$before (string) Optional. A string to output directly before the image URL
$after (string) Optional. A string to output directly after the image URL
Returns:
Returns a string containing the featured image’s URL with $before and $after before and after respectively.