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



wp_secret_changed › WordPress Action Hooks

Seit7.2.0
Veraltetn/v
› do_action(
Parameter: (7)
  • () name The secret's namespaced name.
    Erforderlich: Ja
  • () action One of 'created', 'updated', 'deleted', 'imported', 'retired'.
    Erforderlich: Nein
    Standard: $action ? $action : ($is_update ? 'updated' : 'created')
  • () actor_id The current user id, or 0.
    Erforderlich: Ja
  • () timestamp Unix timestamp of the change.
    Erforderlich: Ja
  • () old_fingerprint The previous fingerprint, or '' if none.
    Erforderlich: Ja
  • () new_fingerprint The new fingerprint, or '' if the secret was deleted.
    Erforderlich: Ja
  • () network Whether the secret is network-scope. A site-scope secret belongs to the current site.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

do_action(