title: "WP_CLI::has_config()" post_status: publish comment_status: open taxonomy: category: - wp-cli-handbook post_tag: - Internal Api - References - Repos


WP_CLI::has_config()

确认全局配置参数是否存在。


用法

WP_CLI::has_config( $key )
$key (string) 要检查的配置参数键名。
@return (bool)

内部 API 文档在每次发布时从 WP-CLI 代码库生成。如需改进建议,请提交拉取请求。


相关