Core Function
View Source on Trac ↗ get_post_format()
get_post_format( mixed $post = null ) Retrieve the format slug for a post
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post | null) $post Optional. Post ID or post object. Defaults to the current post in the loop. Required |
Return Value
((string)
| false) The format if successful. False otherwise.
Function Information
Since Version
3.1.0
Source File
wp-includes/post-formats.php
Advertisement