Title: Custom post type post published notification trigger
Last modified: November 29, 2024

---

# Custom post type post published notification trigger

 *  [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/)
 * Dear support,
   I’m using your plugin along with Download Manager. I would like
   to send an email when a new file is published to the user who has specific access
   to the file itself.I currently wrote some code which fills a custom field with
   the email address of the user, but it is written after the trigger starts, so
   when it is read it is still empty. So the user only receives the post update 
   notifications.
 * Could you suggest how to manage this, please?
 * Thanks in advance.

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

 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/#post-18198398)
 * Dear support,
   in the meantime I found a workaround: saving the post as draft 
   and then publish it. However even if the field value is saved ad I save the post
   as draft, when I publish it the plugin does not read correctly it and the notification
   is not sent. Once the post is published, the update notification is correctly
   sent instead.
 * Hope you can help.
 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/#post-18214093)
 * Hi, this might require a custom trigger, but you could start with enabling Background
   Processing first. This will ensure the meta data is saved before the post is 
   published.
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/#post-18220114)
 * Hi,
   thank you for your kind reply. I just did it, but it does not solve the issue.
   Even if the value is correctly saved. It looks like the record is read as the
   post is published and not as the cron job is launched.
 * Any suggestions?
 *  Thread Starter [lfedele](https://wordpress.org/support/users/lfedele/)
 * (@lfedele)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/#post-18334194)
 * Hi,
   could you provide any update, please?

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

The topic ‘Custom post type post published notification trigger’ is closed to new
replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [lfedele](https://wordpress.org/support/users/lfedele/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/custom-post-type-post-published-notification-trigger/#post-18334194)
 * Status: not resolved