wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_post_format_strings › WordPress Function
Depuis3.1.0
Dépréciéen/a
› get_post_format_strings ( Pas de paramètres )
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Returns an array of post format slugs to their translated and pretty display versions
Fonctions en relation: get_post_format_string, get_post_format_slugs, get_post_format_link, get_post_format, _post_format_link
Source
function get_post_format_strings() { $strings = array( 'standard' => _x( 'Standard', 'Post format' ), // Special case. Any value that evals to false will be considered standard. 'aside' => _x( 'Aside', 'Post format' ), 'chat' => _x( 'Chat', 'Post format' ), 'gallery' => _x( 'Gallery', 'Post format' ), 'link' => _x( 'Link', 'Post format' ), 'image' => _x( 'Image', 'Post format' ), 'quote' => _x( 'Quote', 'Post format' ), 'status' => _x( 'Status', 'Post format' ), 'video' => _x( 'Video', 'Post format' ), 'audio' => _x( 'Audio', 'Post format' ), ); return $strings; }