wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_post_format_request is private and should not be used in themes or plugins directly.
_post_format_request › WordPress Function
Seit3.1.0
Veraltetn/v
› _post_format_request ( $qvs )
Zugriff: |
|
Parameter: |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Filters the request to allow for the format prefix.
Ähnliche Funktionen: _post_format_get_term, _post_format_get_terms, get_post_format_string, post_format_meta_box, _post_format_link
Quellcode
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; }