wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_post_format_link › WordPress Function

Da3.1.0
Deprecaton/a
get_post_format_link ( $format )
Parametri:
  • (string) $format The post format slug.
    Richiesto:
Ritorna:
  • (string|WP_Error|false) The post format term link.
Definito a:
Codex:

Returns a link to a post format index.



Sorgenti

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 );
}