Switch language

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




_get_dropins [ WordPress Function ]

_get_dropins ( No parameters )
Returns:
  • (array) Key is file name. The value is an array, with the first value the purpose of the drop-in and the second value the name of the constant that must be true for the drop-in to be used, or true if no constant is required.
Defined at:



Returns drop-ins that WordPress uses.

Includes Multisite drop-ins only when is_multisite()

Source


<?php
function _get_dropins() {
    
$dropins = array(
        
'advanced-cache.php' => array( __'Advanced caching plugin.'       ), 'WP_CACHE' ), // WP_CACHE
        
'db.php'             => array( __'Custom database class.'         ), true ), // auto on load
        
'db-error.php'       => array( __'Custom database error message.' ), true ), // auto on error
        
'install.php'        => array( __'Custom install script.'         ), true ), // auto on install
        
'maintenance.php'    => array( __'Custom maintenance message.'    ), true ), // auto on maintenance
        
'object-cache.php'   => array( __'External object cache.'         ), true ), // auto on load
    
);

    if ( 
is_multisite() ) {
        
$dropins['sunrise.php'       ] = array( __'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE
        
$dropins['blog-deleted.php'  ] = array( __'Custom site deleted message.'   ), true ); // auto on deleted blog
        
$dropins['blog-inactive.php' ] = array( __'Custom site inactive message.'  ), true ); // auto on inactive blog
        
$dropins['blog-suspended.php'] = array( __'Custom site suspended message.' ), true ); // auto on archived or spammed blog
    
}

    return 
$dropins;
}
?>

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