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



wp_retire_secret_version › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_retire_secret_version ( $name )
Parameter:
  • (string) $name The secret's namespaced name.
    Erforderlich: Ja
Gibt zurück:
  • (true|WP_Error)
Definiert in:
Codex:

Clears a secret's previous version, retiring it for good.

An explicit operator action, with no timers and no cron. Calling this on a secret that has never been rotated, or that does not exist, is a successful no-op: the previous slot is already absent either way. Beyond the API surface the proposal names.


Quellcode

function wp_retire_secret_version( string $name ) {
	return _wp_secrets_retire( $name, false );
}