Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_comment_feed [ WordPress Function ]

is_comment_feed ( No parameters )
Uses:
  • $wp_query
See:
  • WP_Query::is_comments_feed()
Returns:
  • (bool)
Defined at:



Is the query for a comments feed?

Source


<?php
function is_comment_feed() {
    global 
$wp_query;

    if ( ! isset( 
$wp_query ) ) {
        
_doing_it_wrong__FUNCTION____'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1' );
        return 
false;
    }

    return 
$wp_query->is_comment_feed();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics