Switch language

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




allow_subdomain_install [ WordPress Function ]

allow_subdomain_install ( No parameters )
Returns:
  • (bool) Whether subdomain install is allowed
Defined at:



Allow subdomain install

Source


<?php
function allow_subdomain_install() {
    
$domain preg_replace'|https?://([^/]+)|''$1'get_option'siteurl' ) );
    if( 
false !== strpos$domain'/' ) || 'localhost' == $domain || preg_match'|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|'$domain ) )
        return 
false;

    return 
true;
}
?>

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