Hi,
Screen or email Notifications are not implemented yet. This is something i still need to work on for a future release.
If you are a developer, you could probably contribute and try to pull a request on the plugin’s github repository. I guess this could be achieved with this kind of function (not tested):
function ctaylor_notify_user( $file_id, $params = array() ) {
if ( ! empty( $params['parent_folder_id'] ) ) {
$parent_folder = buddydrive_get_buddyfile( $params['parent_folder_id'], buddydrive_get_folder_post_type() );
// Notify if the one who put a file is not the owner of the folder
if ( ! empty( $parent_folder->user_id ) && (int) $params['user_id'] !== (int) $parent_folder->user_id ) {
// your code to send an email/screen notification.
}
}
}
add_action( 'buddydrive_add_item', 'ctaylor_notify_user', 10, 2 );
Hi
Do you have any progress on adding email notifications on file upload? Or could you tell me where I should put the code that you have suggested.
Thank you
Doug