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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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