rest_insert_attachment – action

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

Parameters

.
( 4.7.0 ) . .
( WP_Post ) $attachment Inserted or updated attachment object. . . .
$request
( WP_REST_Request ) The request sent to the API. . . .
( bool ) $creating True when creating an attachment, false when updating. . . .
API Letters: ,,

Implementers