get_post_format_strings [ WordPress Function ]
get_post_format_strings ( No parameters )
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_post_format_string, get_post_format_slugs, get_post_format_link, get_post_format, _post_format_link
Returns an array of post format slugs to their translated and pretty display versions
Source
<?php
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;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- #17576 (Use get_post_format_strings() to generate - WordPress Trac
Description. Dynamically generate the array returned by get_post_format_slugs() as suggested by inline documentation in /wp-includes/post.php "3.2-early: use ...
core.trac.wordpress.org - Post Formats « WordPress Codex
Other Functions. get_post_format_link() · get_post_format_string(). Adding Theme Support. Themes need to use add_theme_support() in the functions.php file to ...
codex.wordpress.org - get_post_format_strings | A HitchHackers guide through WordPress
Feb 24, 2011 ... function get_post_format_strings() { $strings = array( 'standard' => _x( 'Standard', ' Post format' ), // Special case. any value that evals to false ...
hitchhackerguide.com - get_post_format_strings
Function and Method Cross Reference. get_post_format_strings(). Defined at: / wp-includes/post.php -> line 5105. Referenced 6 times: ...
phpxref.ftwr.co.uk