_post_format_request

Filters the request to allow for the format prefix.

Description

(array) _post_format_request( (array) $qvs ); 

Returns (array)

Parameters (1)

0. $qvs (array)
The qvs.

Usage

  1. if ( !function_exists( '_post_format_request' ) ) { 
  2. require_once ABSPATH . WPINC . '/post-formats.php'; 
  3.  
  4. // The qvs. 
  5. $qvs = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _post_format_request($qvs); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post-formats.php  
  1. function _post_format_request( $qvs ) { 
  2. if ( ! isset( $qvs['post_format'] ) ) 
  3. return $qvs; 
  4. $slugs = get_post_format_slugs(); 
  5. if ( isset( $slugs[ $qvs['post_format'] ] ) ) 
  6. $qvs['post_format'] = 'post-format-' . $slugs[ $qvs['post_format'] ]; 
  7. $tax = get_taxonomy( 'post_format' ); 
  8. if ( ! is_admin() ) 
  9. $qvs['post_type'] = $tax->object_type; 
  10. return $qvs;