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



wp_list_secrets › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_list_secrets ( $namespace = '' )
Parameters:
  • (string) $namespace Only secrets whose name starts with "{$namespace}/" are returned. Default '' returns every secret.
    Required: No
    Default: (empty)
Returns:
  • (array|WP_Error) Array of associative arrays, each with keys 'name',
    'fingerprint', 'created', 'has_previous', and
    'needs_rotation'.
Defined at:
Codex:

Lists secrets by name and metadata. Never a value.



Source

function wp_list_secrets( string $namespace = '' ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound -- $namespace is the public parameter name; renaming it would break named-argument callers.
	return _wp_secrets_list( $namespace, false );
}