• Resolved steve92

    (@steve92)


    I want to know if it is possible to modify the code so that the user is notified when I edit a post.

    • This topic was modified 5 years, 11 months ago by steve92.
Viewing 15 replies - 1 through 15 (of 16 total)
  • @steve92

    The easiest way to accomplish this is to revert the post to draft and republish after you have made your edits.

    Thread Starter steve92

    (@steve92)

    Yes, I had thought this. But the simplest way is that when I publish an updated post, a notice immediately begins for the registered user.
    Can you change this to your plugin?

    @steve92

    That’s not at all easy, especially with things like auto-save – I don’t think there is an easy way to differentiate between an auto-save and an update within WordPress.

    Thread Starter steve92

    (@steve92)

    The update by the admin requires that the Update button is pressed (after editing the post)

    @steve92

    Indeed, but programatically acting on that is not as easy as you make it sound as there isn’t a WordPress hook the only first on that event.

    Thread Starter steve92

    (@steve92)

    Of course, you could make sure that when the admin clicks the Update button, the input sends the command to the email of the subscriber.
    But I’m not a programmer of your plugin.

    @steve92

    Linking any action to the click of the Update buttons, in my opinion a bad idea. What if you spot a typo in your post and correct it on a published post – new email is sent. Is that wise or intended.

    Instead I’ve implemented a new meta box that shows for published posts and includes a Resend button. It’s in my development code here:

    https://github.com/mattyrob/subscribe2

    Thread Starter steve92

    (@steve92)

    I would do so. I would do so. Then, these options must appear visible, not as a drop-down menu like now.

    x.

    Thread Starter steve92

    (@steve92)

    I have a new idea, just keep this one. The other 2 options are not needed.

    @steve92

    I’m glad you like the new feature idea – the existing bits will have to stay as other people requested and use those.

    Thread Starter steve92

    (@steve92)

    Ok, keep the menu visible

    Thread Starter steve92

    (@steve92)

    Here I would put in the drop-down menu also the item “Suspend sending to these emails”.

    @steve92

    ‘Attiva L’iscrizione’ will do that – the translation is not perfect – in English it is ‘Toggle’ Subscriber between active and inactive. Moving to Inactive status will suspend email sending.

    Thread Starter steve92

    (@steve92)

    The new feature Subscribe2 Resend is good.
    I in Settings -> Models would put a new model eg. “Hi, the” Example “post has been changed, you can read it here: [link]”. In this way the user recognizes this new email.
    Then you can officially publish the new version of the plugin.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Notify the user when updating a post’ is closed to new replies.