• 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

    (@lfedele)

    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

    (@kubitomakita)

    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

    (@lfedele)

    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

    (@lfedele)

    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.