• Resolved am262327

    (@am262327)


    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:
    https://github.com/wp-cli/wp-cli/issues/282

    Thanks for any help.

    -Adam

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 1 replies (of 1 total)
  • @adam,

    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?

Viewing 1 replies (of 1 total)
  • The topic ‘Emails from wp-cli sent immediately rather than as scheduled’ is closed to new replies.