wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_installing › WordPress Function
Seit4.4.0
Veraltetn/v
› wp_installing ( $is_installing = null )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Checks or sets whether WordPress is in "installation" mode.
If theWP_INSTALLING constant is defined during the bootstrap, wp_installing() will default to true.Ähnliche Funktionen: wp_install, wp_insert_link, wp_not_installed, wp_is_internal_link, wp_ajax_install_plugin
Quellcode
function wp_installing( $is_installing = null ) {
static $installing = null;
// Support for the `WP_INSTALLING` constant, defined before WP is loaded.
if ( is_null( $installing ) ) {
$installing = defined( 'WP_INSTALLING' ) && WP_INSTALLING;
}
if ( ! is_null( $is_installing ) ) {
$old_installing = $installing;
$installing = $is_installing;
return (bool) $old_installing;
}
return (bool) $installing;
}