wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_secrets_provider_is_writable › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_secrets_provider_is_writable ( Keine Parameter )
Gibt zurück:
  • (bool)
Definiert in:
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.


Quellcode

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