wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_secrets_provider_is_writable › WordPress Function

Since7.2.0
已弃用n/a
› wp_secrets_provider_is_writable ( 没有参数 )
返回:
  • (bool)
定义在:
文档:

Whether the active provider accepts writes.

Exists so a settings screen can disable its own save control before an operator types a credential into a field that will only reject it. A provider whose credentials are managed by host tooling or a control panel reports false.


源码

function wp_secrets_provider_is_writable(): bool {
	return _wp_secrets_get_provider()->is_writable();
}