Switch language

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




get_current_site [ WordPress Function ]

get_current_site ( No parameters )
Returns:
  • (object)
Defined at:



Get the current site info.

Returns an object containing the ID, domain, path, and site_name of the site being viewed.

Source


<?php
function get_current_site() {
    global 
$current_site;
    return 
$current_site;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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