Skip to content

Commit

Permalink
Fire bp_group_documents_add_success action after saving bp_group_docu…
Browse files Browse the repository at this point in the history
…ment.

This should ensure that the notification goes out.
  • Loading branch information
boonebgorges committed Aug 10, 2020
1 parent 7ac503b commit a9aba0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Endpoints/LibraryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ protected function save_bp_group_document( $params, $file_params ) {
return $retval;
}

do_action( 'bp_group_documents_add_success', $doc );

if ( ! empty( $params['folder'] ) ) {
if ( '_addNew' === $params['folder'] ) {
$folder_name = $params['newFolderTitle'];
Expand Down

0 comments on commit a9aba0f

Please sign in to comment.