has_post_thumbnail Wordpress function


Description:

Check if post has an image attached.


Syntax:


Arguments:

(int) $post_id Optional. Post ID.


Return Type:

(bool) Whether post has an image attached.


Define At:

wp-includes/post-thumbnail-template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/has_post_thumbnail


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×