has_post_format Wordpress function


Description:

Check if a post has a particular format


Syntax:


Arguments:

(string) $format The format to check for
(object|id) $post The post to check. If not supplied, defaults to the current post if used in the loop.


Return Type:

(bool) True if the post has the format, false otherwise.


Define At:

wp-includes/post.php


Wordpress Reference URL:

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


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