wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_set_secret › WordPress Function
Since7.2.0
Deprecatedn/a
› wp_set_secret ( $name, $value )
| Parameters: (2) |
|
| Returns: |
|
| Defined at: |
|
| Codex: |
Encrypts and stores a secret.
Encryption is unconditional: there is no plaintext mode and no constant to disable it. No capability check is applied here, because this must be callable from cron, REST, and front-end requests where no user is logged in. Enforce capabilities at the operator boundary (CLI, an admin screen) instead.Related Functions: wp_get_secret, wp_list_secrets, wp_delete_secret, wp_set_network_secret, wp_insert_user