A WordPress-centric search engine for devs and theme authors



_post_format_request ›

Since3.1.0
Deprecatedn/a
_post_format_request ( $qvs )
Access:
  • private
Parameters:
  • (array) $qvs
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:

Filters the request to allow for the format prefix.



Source

function _post_format_request( $qvs ) {
	if ( ! isset( $qvs['post_format'] ) ) {
		return $qvs;
	}
	$slugs = get_post_format_slugs();
	if ( isset( $slugs[ $qvs['post_format'] ] ) ) {
		$qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ];
	}
	$tax = get_taxonomy( 'post_format' );
	if ( ! is_admin() ) {
		$qvs['post_type'] = $tax->object_type;
	}
	return $qvs;
}