wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_secrets_provider_is_writable › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_secrets_provider_is_writable ( No parameters )
Returns:
  • (bool)
Defined at:
Codex:

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.


Source

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