_get_dropins

The timeline below displays how wordpress function _get_dropins has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Returns drop-in plugins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 *
 * @return array[] {
 *     Key is file name. The value is an array of data about the drop-in.
 *
 *     @type array ...$0 {
 *         Data about the drop-in.
 *
 *         @type string      $0 The purpose of the drop-in.
 *         @type string|true $1 Name of the constant that must be true for the drop-in
 *                              to be used, or true if no constant is required.
 *     }
 * }
 */
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 installation script.'), true),
        // Auto on installation.
        'maintenance.php' => array(__('Custom maintenance message.'), true),
        // Auto on maintenance.
        'object-cache.php' => array(__('External object cache.'), true),
        // Auto on load.
        'php-error.php' => array(__('Custom PHP error message.'), true),
        // Auto on error.
        'fatal-error-handler.php' => array(__('Custom PHP fatal error handler.'), true),
    );
    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;
}

WordPress Version: 5.4

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return 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.
 */
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 installation script.'), true),
        // Auto on installation.
        'maintenance.php' => array(__('Custom maintenance message.'), true),
        // Auto on maintenance.
        'object-cache.php' => array(__('External object cache.'), true),
        // Auto on load.
        'php-error.php' => array(__('Custom PHP error message.'), true),
        // Auto on error.
        'fatal-error-handler.php' => array(__('Custom PHP fatal error handler.'), true),
    );
    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;
}

WordPress Version: 5.2

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return 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.
 */
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 installation script.'), true),
        // auto on installation
        'maintenance.php' => array(__('Custom maintenance message.'), true),
        // auto on maintenance
        'object-cache.php' => array(__('External object cache.'), true),
        // auto on load
        'php-error.php' => array(__('Custom PHP error message.'), true),
        // auto on error
        'fatal-error-handler.php' => array(__('Custom PHP fatal error handler.'), true),
    );
    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;
}

WordPress Version: 5.1

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return 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.
 */
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 installation script.'), true),
        // auto on installation
        'maintenance.php' => array(__('Custom maintenance message.'), true),
        // auto on maintenance
        'object-cache.php' => array(__('External object cache.'), true),
    );
    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;
}

WordPress Version: 4.9

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return 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.
 */
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 installation script.'), true),
        // auto on installation
        'maintenance.php' => array(__('Custom maintenance message.'), true),
        // auto on maintenance
        'object-cache.php' => array(__('External object cache.'), true),
    );
    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;
}

WordPress Version: 3.7

/**
 * Returns drop-ins that WordPress uses.
 *
 * Includes Multisite drop-ins only when is_multisite()
 *
 * @since 3.0.0
 * @return 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.
 */
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),
    );
    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;
}