wp_installing
函数
wp_installing ( $is_installing = null )
- 参数
-
-
(bool)
$is_installing
Optional. True to set WP into Installing mode, false to turn Installing mode off. Omit this parameter if you only want to fetch the current status.- Required: 否
- Default: null
-
(bool)
- 返回值
-
- (bool) True if WP is installing, otherwise false. When a `$is_installing` is passed, the function will report whether WP was in installing mode prior to the change to `$is_installing`.
- 定义位置
-
-
wp-includes/load.php
, line 1422
-
wp-includes/load.php
- 引入
- 4.4.0
- 弃用
- –
Check or set whether WordPress is in “installation” mode.
If the `WP_INSTALLING` constant is defined during the bootstrap, `wp_installing()` will default to `true`.
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; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。