rest_after_insert_attachment, $attachment, $request, false

rest_after_insert_attachment, $attachment, $request, false

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('rest_after_insert_attachment, $attachment, $request, false') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php line 500
     
    		$request->set_param( 'context', 'edit' );
    
    		/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php */
    		do_action( 'rest_after_insert_attachment', $attachment, $request, false );
    
    		wp_after_insert_post( $attachment, true, $attachment_before );
    
    		$response = $this->prepare_item_for_response( $attachment, $request );
    		$response = rest_ensure_response( $response );