• Resolved George

    (@quantum_leap)


    I have set up a notification to be received when a new post is published and it works fine. I have also set up a notification for when an article is updated.

    In addition to that, we are using a python script and using XML-RPC to import articles from Bugzilla into WordPress as regular posts assigned to a particular category. The script imports new posts or updates existing ones.

    While I receive a notification when those posts are updated, I don’t receive a notification when they are created. Notifications for manually creating a post still work, it’s just the ones using XML-RPC are not triggered.

    Is there a solution for this?

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

    (@voltronik)

    Hi @quantum_leap,
    Thanks for your message.

    Unfortunately, there’s not a way around this at present. It’s been a long standing issue but not one i’m sure I can fix. Details at the bottom of this page: https://betternotificationsforwp.com/known-compatibility-issues/

    Thread Starter George

    (@quantum_leap)

    I had a look at the link ylu mention.

    I provide a user and a password through the API so the plugin should be able to work with it.

    Anyway, I switched to the “Custom Notifications and Alerts for WordPress” plugin and its normal publish new post notification worked with the API our of the box. You might want to have a look at the code and possibly improve your plugin.

    Plugin Author bnfw

    (@voltronik)

    Hi @quantum_leap,
    Thanks for your reply.

    Do you need to pass a user ID or object in code when you trigger the notification? If so, this is how they’re getting around it.

    Thread Starter George

    (@quantum_leap)

    The user that creates posts like this already exists in WordPress. The script just provides user info for authentication.

    Plugin Author bnfw

    (@voltronik)

    Hi @quantum_leap,
    Ah, that’s most likely how they’re doing it then. If you need to authenticate with the API in order to use it then that’s how it knows who you are.

    I’ll look to improve this part of BNFW in a future version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New post notification not sent when using XML-RPC to import articles’ is closed to new replies.