wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_is_development_mode › WordPress Function
Since6.3.0
已弃用n/a
› wp_is_development_mode ( $mode )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Checks whether the site is in the given development mode.
源码
function wp_is_development_mode( $mode ) {
$current_mode = wp_get_development_mode();
if ( empty( $current_mode ) ) {
return false;
}
// Return true if the current mode encompasses all modes.
if ( 'all' === $current_mode ) {
return true;
}
// Return true if the current mode is the given mode.
return $mode === $current_mode;
}