wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_insert_attachment › WordPress Action Hooks

Da4.7.0
Deprecaton/a
› do_action( 'rest_insert_attachment', $attachment, $request, true )
Parametri: (3)
  • () attachment Inserted or updated attachment object.
    Richiesto: Sì
  • () request The request sent to the API.
    Richiesto: Sì
  • () creating True when creating an attachment, false when updating.
    Richiesto: Sì
Definito a:
Codex:

Fires after a single attachment is created or updated via the REST API.





Sorgenti

do_action( 'rest_insert_attachment', $attachment, $request, true );