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



wp_list_secrets › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_list_secrets ( $namespace = '' )
Parameter:
  • (string) $namespace Only secrets whose name starts with "{$namespace}/" are returned. Default '' returns every secret.
    Erforderlich: Nein
    Standard: (leer)
Gibt zurück:
  • (array|WP_Error) Array of associative arrays, each with keys 'name',
    'fingerprint', 'created', 'has_previous', and
    'needs_rotation'.
Definiert in:
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.


Quellcode

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 );
}