99
101
* @param string|array $size Optional. Registered image size to use, or flat array of height
100
102
* and width values. Default 'post-thumbnail'.
101
103
* @param string|array $attr Optional. Query string or array of attributes. Default empty.
103
106
function get_the_post_thumbnail( $post_id = null, $size = 'post-thumbnail', $attr = '' ) {
104
107
$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;