WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. am262327
    Member
    Posted 1 year 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:
    https://github.com/wp-cli/wp-cli/issues/282

    Thanks for any help.

    -Adam

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

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.