• Resolved myplatzerl

    (@myplatzerl)


    Hi there,

    I am currently testing your plugin and interested in the premium add ons, but I came across a problem.

    Our posts are created via a webhook and the post_status is set to “publish”, but like this the notifications don’t get sent, do you know a solution for this?

    When I create the post manually in wordpress the notification works. So I assume the plugin doesn’t realize when a post is pusblished via a webhook.

    Thanks in advance ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @myplatzerl,
    Thanks for your message.

    This usually happens when no user is assigned to the post action. I know this is an issue when using WP-CLI too.

    Does this help?

    Thread Starter myplatzerl

    (@myplatzerl)

    Hi there,

    thanks for the reply.
    I just checked again the user is assigned via post_author to the post and I also see that the post is assigned to that user..

    This is how I create the user:

    {
    “action”: “create_user”,
    “user_email”: “@email”,
    “user_login”: “@email”,
    “send_email”: “yes”
    }

    and then afterwards I created the post with this:

    {
    “action”: “create_post”,
    “post_type”: “hp_request”,
    “post_title”: “Urlaubswunsch von @name”,
    “post_author”: “@email”,
    “post_content”: “Bundesland,
    “post_status”: “publish”
    }

    You see that the username is the email adress and then also the post gets assigned to this email adress/user.

    Any other idea what that could be?

    Is it because it is created via webhook?

    If I create the post manually in the wordpress Dashboard with the same user, it works :/

    Plugin Author bnfw

    (@voltronik)

    Hi @myplatzerl,
    It’s good you’re assigning an author, but you also need to assign a user to the post insert action. Currently, your WP Admin will see a computer inserting the post (which doesn’t have any user credentials) when, if you were doing it via your WP Admin, your site would see a logged in user inserting the post. The author is one part, but assigning a user to the action of inserting the post is the other. I should have made this clearer before.

    Plugin Author bnfw

    (@voltronik)

    Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Notification when Post is created via Webhook’ is closed to new replies.