WordPress at a glance
function is not described

_post_format_link() WP 3.1.0

Filters the post format term link to remove the format prefix.

  • Global. WP_Rewrite. $wp_rewrite

No Hooks.

Return

String.

Usage

_post_format_link( $link, $term, $taxonomy );
$link(string) (required)
$term(object) (required)
$taxonomy(string) (required)

Code of post format link: wp-includes/post-formats.php VER 5.0.3

<?php
function _post_format_link( $link, $term, $taxonomy ) {
	global $wp_rewrite;
	if ( 'post_format' != $taxonomy ) {
		return $link;
	}
	if ( $wp_rewrite->get_extra_permastruct( $taxonomy ) ) {
		return str_replace( "/{$term->slug}", '/' . str_replace( 'post-format-', '', $term->slug ), $link );
	} else {
		$link = remove_query_arg( 'post_format', $link );
		return add_query_arg( 'post_format', str_replace( 'post-format-', '', $term->slug ), $link );
	}
}