Skip to content

Commit 715c12b

Browse files
committed
gpml-ajax-upload.php: Added gpmlau_after_upload action.
1 parent b0fd9e1 commit 715c12b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

gp-media-library/gpml-ajax-upload.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin URI: https://gravitywiz.com/documentation/gravity-forms-media-library/
1212
* Description: Upload images to the Media Library as they are uploaded via the Gravity Forms Multi-file Upload field.
1313
* Author: Gravity Wiz
14-
* Version: 0.13
14+
* Version: 0.14
1515
* Author URI: https://gravitywiz.com/
1616
*/
1717
class GPML_Ajax_Upload {
@@ -65,6 +65,16 @@ public function upload( $form, $field, $uploaded_filename, $tmp_file_name, $file
6565
return;
6666
}
6767

68+
/**
69+
* Fires after a file has been uploaded to the Media Library via AJAX.
70+
*
71+
* @param array $id Array of file IDs.
72+
* @param GF_Field_FileUpload $field The File Upload field object.
73+
*
74+
* @since 0.14
75+
*/
76+
do_action( 'gpmlau_after_upload', $id, $field );
77+
6878
$key = sprintf( 'gpml_ids_%s', $field_uid );
6979

7080
// Get file IDs.

0 commit comments

Comments
 (0)