• Hello, thanks for a great plugin!
    I’d like to use the update user hook, but only for specific user roles. They’re custom ultimate member roles. Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hey @ljcn – Thanks for reaching out, as well as for your interest in our plugin! ??
    Our pro version offers a webhook endpoint to update users, which also supports custom roles. You can take a closer look at it via the web view of our plugin: https://wp-webhooks.com/pro/?wpwh=wp-webhooks-pro&wpwhtb=receive-data
    Once there, simply click on the update_user webhook action, and within the argument list (and description) you will find an argument called additional_roles which is perfect for that.
    If you have any further questions, feel free to reach out at any time!

    Thread Starter ljcn

    (@ljcn)

    Hi Ironikus,

    Sorry for not being clear but I’m referring to the sending data.
    WP Webhooks fires a webhook whenever a new user is created but I’d like it to do it only for certain roles.

    Plugin Contributor Ironikus

    (@ironikus)

    Hey @ljcn – Thanks for clarifying this.
    In this case, you have two possibilities.

    1. In case you use a third-party service like Zapier or Integromat, you can use a if-else statement for that

    2. The cleanest way of doing that would be by using a custom filter to only fire the webhooks from a specific role.
    There is a filter available that allows you to limit the webhook from firing: https://ironikus.com/docs/knowledge-base/is-valid-trigger-response/

    I hope this helps you so far. Feel free to let me know in case you have further questions. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom User Role’ is closed to new replies.