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



wp_secret_changed › WordPress Action Hooks

Since7.2.0
Deprecatedn/a
› do_action(
Parameters: (7)
  • () name The secret's namespaced name.
    Required: Yes
  • () action One of 'created', 'updated', 'deleted', 'imported', 'retired'.
    Required: No
    Default: $action ? $action : ($is_update ? 'updated' : 'created')
  • () actor_id The current user id, or 0.
    Required: Yes
  • () timestamp Unix timestamp of the change.
    Required: Yes
  • () old_fingerprint The previous fingerprint, or '' if none.
    Required: Yes
  • () new_fingerprint The new fingerprint, or '' if the secret was deleted.
    Required: Yes
  • () network Whether the secret is network-scope. A site-scope secret belongs to the current site.
    Required: Yes
Defined at:
Codex:

Fires whenever a secret is created, updated, deleted, imported, or retired.

The only hook in the core-bound Secrets API code, and it does not fire on the retrieval path. Fingerprints are readable; values are never passed.




Source

do_action(