Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Mobile
    • Hosting
    • Openverse ↗︎
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
  • Community
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
  • About
    • About WordPress
    • Showcase
    • Enterprise
    • Gutenberg ↗︎
    • WordPress Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/post-formats.php

get_post_format()

Function: Retrieve the format slug for a post

Source: wp-includes/post-formats.php:17

Used by 10 functions | Uses 3 functions

_post_format_wp_get_object_terms()

Function: Remove the post format prefix from the name property of the term objects created by wp_get_object_terms() .

Source: wp-includes/post-formats.php:260

Used by 0 functions | Uses 1 function

has_post_format()

Function: Check if a post has any of the given formats, or any format.

Source: wp-includes/post-formats.php:49

Used by 0 functions | Uses 2 functions

set_post_format()

Function: Assign a format to a post

Source: wp-includes/post-formats.php:70

Used by 8 functions | Uses 6 functions

get_post_format_strings()

Function: Returns an array of post format slugs to their translated and pretty display versions

Source: wp-includes/post-formats.php:96

Used by 6 functions | Uses 1 function

get_post_format_slugs()

Function: Retrieves the array of post format slugs.

Source: wp-includes/post-formats.php:119

Used by 5 functions | Uses 1 function

get_post_format_string()

Function: Returns a pretty, translated version of a post format slug

Source: wp-includes/post-formats.php:132

Used by 8 functions | Uses 1 function

get_post_format_link()

Function: Returns a link to a post format index.

Source: wp-includes/post-formats.php:149

Used by 2 functions | Uses 3 functions

_post_format_request()

Function: Filters the request to allow for the format prefix.

Source: wp-includes/post-formats.php:166

Used by 0 functions | Uses 3 functions

_post_format_link()

Function: Filters the post format term link to remove the format prefix.

Source: wp-includes/post-formats.php:194

Used by 0 functions | Uses 3 functions

_post_format_get_term()

Function: Remove the post format prefix from the name property of the term object created by get_term() .

Source: wp-includes/post-formats.php:216

Used by 0 functions | Uses 1 function

_post_format_get_terms()

Function: Remove the post format prefix from the name property of the term objects created by get_terms() .

Source: wp-includes/post-formats.php:234

Used by 0 functions | Uses 1 function
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry