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



wp_retire_secret_version › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_retire_secret_version ( $name )
Parameters:
  • (string) $name The secret's namespaced name.
    Required: Yes
Returns:
  • (true|WP_Error)
Defined at:
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.


Source

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