| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Secrets API: WP_Secrets_Option_Store class
| File Size: | 207 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| get( string $name, bool $network = false ) X-Ref |
| Reads a secret's stored record. return: array<mixed>|null|WP_Error param: string $name The secret's namespaced name. param: bool $network Whether this is a network-scope secret. |
| set( string $name, array $record, bool $network = false ) X-Ref |
| Writes a secret's record. return: true|WP_Error param: string $name The secret's namespaced name. param: array<mixed> $record The record to store. param: bool $network Whether this is a network-scope secret. |
| delete( string $name, bool $network = false ) X-Ref |
| Deletes a secret's record. return: true|WP_Error param: string $name The secret's namespaced name. param: bool $network Whether this is a network-scope secret. |
| list_names( bool $network = false ) X-Ref |
| Lists the names of every secret in this store, for this scope. return: string[]|WP_Error param: bool $network Whether to list network-scope secrets. |
| option_name( string $name, bool $network ) X-Ref |
| Builds the option name a secret is stored under. return: string param: string $name The secret's namespaced name. param: bool $network Whether this is a network-scope secret. |
| Generated : Wed Oct 14 08:20:33 2026 | Cross-referenced by PHPXref |