get_post_format_strings

Definition:
function get_post_format_strings() {}

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

Return values

returns:The array of translations

Source code

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;

}

9593

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: