[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
Post format functions.
File Size: | 243 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
get_post_format( $post = null ) X-Ref |
Retrieve the format slug for a post param: int|object $post Post ID or post object. Optional, default is the current post from the loop. return: mixed The format if successful. False otherwise. |
has_post_format( $format = array() X-Ref |
Check if a post has any of the given formats, or any format. param: string|array $format Optional. The format or formats to check. param: object|int $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop. return: bool True if the post has any of the given formats (or any format, if no format specified), false otherwise. |
set_post_format( $post, $format ) X-Ref |
Assign a format to a post param: int|object $post The post for which to assign a format. param: string $format A format to assign. Use an empty string or array to remove all formats from the post. return: mixed WP_Error on error. Array of affected term IDs on success. |
get_post_format_strings() X-Ref |
Returns an array of post format slugs to their translated and pretty display versions return: array The array of translated post format names. |
get_post_format_slugs() X-Ref |
Retrieves an array of post format slugs. return: array The array of post format slugs. |
get_post_format_string( $slug ) X-Ref |
Returns a pretty, translated version of a post format slug param: string $slug A post format slug. return: string The translated post format name. |
get_post_format_link( $format ) X-Ref |
Returns a link to a post format index. param: string $format The post format slug. return: string The post format term link. |
_post_format_request( $qvs ) X-Ref |
Filters the request to allow for the format prefix. |
_post_format_link( $link, $term, $taxonomy ) X-Ref |
Filters the post format term link to remove the format prefix. |
_post_format_get_term( $term ) X-Ref |
Remove the post format prefix from the name property of the term object created by get_term(). |
_post_format_get_terms( $terms, $taxonomies, $args ) X-Ref |
Remove the post format prefix from the name property of the term objects created by get_terms(). |
_post_format_wp_get_object_terms( $terms ) X-Ref |
Remove the post format prefix from the name property of the term objects created by wp_get_object_terms(). |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |