Title: Image Upload Notification
Last modified: August 31, 2016

---

# Image Upload Notification

 *  [Philip Crumpton](https://wordpress.org/support/users/crumptoninc/)
 * (@crumptoninc)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/)
 * Is it possible to extend the plugin to add notifications when an image is uploaded
   to a post?
 * [https://wordpress.org/plugins/edit-flow/](https://wordpress.org/plugins/edit-flow/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [cojennin](https://wordpress.org/support/users/comradefuzz/)
 * (@comradefuzz)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349820)
 * If you want to notify a certain usergroup when an attachment is added to a post,
   you could try something like [https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef](https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef).
 * This would (fingers crossed, haven’t tested it) notify all my copy editors that
   an attachment has been added to a post (the attachment is not necessarily an 
   image!).
 * Would something like that suffice? How do you see a notification on an image 
   being uploaded to a post fitting into your current workflow?
 *  Thread Starter [Philip Crumpton](https://wordpress.org/support/users/crumptoninc/)
 * (@crumptoninc)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349844)
 * Thank you for your response!
 * That’s VERY close. The only thing I’d like to figure out is how to get the current
   post’s subscribed users or groups dynamically before sending instead of hard-
   coding the group.
 * Thank you for the question about workflow. I’m building out a university’s student
   news site and they place a high emphasis on photo quality, thereby wanting notifications
   when photos are added to a post so it can be properly reviewed.
 *  [cojennin](https://wordpress.org/support/users/comradefuzz/)
 * (@comradefuzz)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349853)
 * Gotcha. Updated the gist: [https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef](https://gist.github.com/cojennin/31c877280c803d7cc747edd36ca3a7ef)
 * That should grab all the user groups (note: **it does not grab individually subscribed
   users**) on the post and send emails to every individual in a user group that
   is subscribed to the post.
 * It also checks to make sure the notifications and user groups modules are enabled.
   If one or the other is disabled, it won’t send notifications.
 * edit: clarification
 *  Thread Starter [Philip Crumpton](https://wordpress.org/support/users/crumptoninc/)
 * (@crumptoninc)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349854)
 * Awesome! Very appreciative of your help. This should get me going quite well.
 * By the way, I couldn’t find documentation on the edit flow site (I did look!).
   Is there any formal documentation?
 *  [cojennin](https://wordpress.org/support/users/comradefuzz/)
 * (@comradefuzz)
 * [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349855)
 * Ooph. Caught red-handed.
 * It’s something that definitely needs work. There’s a section on the website with
   [code snippets for extending Edit Flow](http://editflow.org/extend/), but standard
   documentation is lacking.
 * If you ever have a few minutes and wish to pay this one forward, would be great
   to have a [PR to kick off the documentation process](https://github.com/Automattic/Edit-Flow).
   Maybe just documenting one of the functions in that gist `get_usergroup_by` or`
   get_following_usergroups`.
 * Bare bones, I’d imagine in Github the documentation structure might look like:
 *     ```
       - common
       - language
       - modules
       - tests
       - docs
         - edit_flow.md (documenting functions, their arguments, return values and use cases)
         - modules
           - notifications.md (documenting functions, their arguments, return values and use cases)
           - user-groups.md (documenting functions, their arguments, return values and use cases)
       ```
   
 * But open to suggestions.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image Upload Notification’ is closed to new replies.

 * ![](https://ps.w.org/edit-flow/assets/icon-256x256.png?rev=3433533)
 * [Edit Flow](https://wordpress.org/plugins/edit-flow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edit-flow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edit-flow/)
 * [Active Topics](https://wordpress.org/support/plugin/edit-flow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edit-flow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edit-flow/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [cojennin](https://wordpress.org/support/users/comradefuzz/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/image-upload-notification/#post-7349855)
 * Status: not resolved