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.

Beyond the API surface the proposal names, and justified by its statement that the hooks and accessors a future admin screen needs are in scope now, even though the screen itself is not.


Source

function wp_list_secrets( string $namespace = '' ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound -- $namespace is the parameter name the proposal specifies.
	return _wp_secrets_list( $namespace, false );
}