[resolved] Emails from wp-cli sent immediately rather than as scheduled (2 posts)

  1. am262327
    Posted 3 years ago #

    I'm not at all convinced this is an issue with subscribe2, but for what it's worth:

    When I use the command-line tool:
    wp post create
    with post_status=future
    I would expect that the emails get sent as indicated in the same command. Instead, the emails get sent immediately. It's probably important to note that the post itself also gets published immediately (which in turn means that the emails get sent).

    I spell this out more fully here, with reproducible error:

    Thanks for any help.



  2. mattyrob
    Posted 3 years ago #


    I suspect you are right in as much as it's a deeper issue. If a post is set to future it should not immediately be visible. Clearly, if it is showing then something is causing the 'future_to_publish' API hook to trigger which is why the email is generated and sent.

    If you disable Subscribe2 and test again does the post still become immediately visible?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.