Switch language

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




allow_subdirectory_install [ WordPress Function ]

allow_subdirectory_install ( No parameters )
Returns:
  • (bool) Whether subdirectory install is allowed
Defined at:



Allow subdirectory install

Source


<?php
function allow_subdirectory_install() {
    global 
$wpdb;
    if ( 
apply_filters'allow_subdirectory_install'false ) )
        return 
true;

    if ( 
defined'ALLOW_SUBDIRECTORY_INSTALL' ) && ALLOW_SUBDIRECTORY_INSTALL )
        return 
true;

    
$post $wpdb->get_row"SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" );
    if ( empty( 
$post ) )
        return 
true;

    return 
false;
}
?>

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