Switch language

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




is_robots [ WordPress Function ]

is_robots ( No parameters )
Uses:
  • $wp_query
See:
Returns:
  • (bool)
Defined at:

Benzer Fonksiyonlar: do_robots, wp_no_robots, is_rtl, is_month, is_error


Is the query for the robots file?

Source


<?php
function is_robots() {
    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_robots();
}
?>

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