get_post_format_link() – Returns a link to a post format index.
You appear to be a bot. Output may be restricted
Description
Returns a link to a post format index.
Usage
$string|WP_Error|false = get_post_format_link( $format );
Parameters
- $format
- ( string ) required – The post format slug.
Returns
string|WP_Error|false The post format term link.
Source
File name: wordpress/wp-includes/post-formats.php
Lines:
1 to 7 of 7
function get_post_format_link( $format ) { $term = get_term_by( 'slug', 'post-format-' . $format, 'post_format' ); if ( ! $term || is_wp_error( $term ) ) { return false; } return get_term_link( $term ); }