get_post_format_strings

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

Description

(array) get_post_format_strings(); 

Returns (array)

The array of translated post format names.


Usage

  1. if ( !function_exists( 'get_post_format_strings' ) ) { 
  2. require_once ABSPATH . WPINC . '/post-formats.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_post_format_strings(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post-formats.php  
  1. function get_post_format_strings() { 
  2. $strings = array( 
  3. 'standard' => _x( 'Standard', 'Post format' ), // Special case. any value that evals to false will be considered standard 
  4. 'aside' => _x( 'Aside', 'Post format' ),  
  5. 'chat' => _x( 'Chat', 'Post format' ),  
  6. 'gallery' => _x( 'Gallery', 'Post format' ),  
  7. 'link' => _x( 'Link', 'Post format' ),  
  8. 'image' => _x( 'Image', 'Post format' ),  
  9. 'quote' => _x( 'Quote', 'Post format' ),  
  10. 'status' => _x( 'Status', 'Post format' ),  
  11. 'video' => _x( 'Video', 'Post format' ),  
  12. 'audio' => _x( 'Audio', 'Post format' ),  
  13. ); 
  14. return $strings;