Best answer

How do we modify WordPress user role after a Hotmart purchase using Zapier?

  • 30 October 2023
  • 4 replies
  • 90 views

Necesito automatizar que cuando se realice una compra en Hotmart, el rol de usuario de wordpress del cliente, se modifique, ya que la compra otorga unos permisos en el sitio web, definidos por ese rol en concreto.

El problema es que cuando creo un zap, wordpress solo tiene la opción de crear un rol, pero no veo ninguna opción de modificar su rol.

 

Alguien podría decirme:

  1. Si es posible hacer eso.
  2. Cómo debería crear el zap.
icon

Best answer by ken.a 1 November 2023, 08:22

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 3
Badge +2

@Ventfer you need to create a custom API app extension for this using zapier.

Goto this url: App Extensions | Zapier

And paste this prompt:Find a wordpress user and update the user role “

Use this option

 

 

  • Click on Use.
  • Scroll down and click on Save
  • Goto Zap editor and go with the options and then connect your wordpress and then select your App extension that you have created in the previous step. 
  • You need to map email and then and then type your “New Role” it can by dynamic or you can hard code it.
     




Do let me know if you have any questions for me.

Userlevel 7
Badge +14

@Ventfer 

Translated to English.

 

When purchasing at Hotmart, modify WordPress role

I need to automate that when a purchase is made at Hotmart, the client's WordPress user role is modified, since the purchase grants permissions on the website, defined by that specific role.

The problem is that when I create a zap, WordPress only has the option to create a role, but I don't see any option to modify its role.

 

Could someone tell me:

     If it is possible to do that.
     How should I create the zap.

@Ventfer you need to create a custom API app extension for this using zapier.

Goto this url: App Extensions | Zapier

And paste this prompt:Find a wordpress user and update the user role “

Use this option

 

 

  • Click on Use.
  • Scroll down and click on Save
  • Goto Zap editor and go with the options and then connect your wordpress and then select your App extension that you have created in the previous step. 
  • You need to map email and then and then type your “New Role” it can by dynamic or you can hard code it.
     




Do let me know if you have any questions for me.

 

Gracias por tu respuesta, pero cuando entro al enlace, no me aparece la misma ventana, me aparece éste formulario:

y sinceramente, no sé cómo rellenarlo…

 

Puedo acceder a la ventana que me muestras en la captura, pero al pegar:

Find a wordpress user and update the user role”

no me da opciones, me da una solución que no es la que necesito:

 

Userlevel 7
Badge +6

Hi there @Ventfer,

For your desired workflow to be possible we’re going to need the “Update User” action for WordPress. Unfortunately, the “Update User” action is not available at the moment. However, we do have an open feature request for this.

I have added you as another interested member to the open feature request. That does a few things:

  • Bring this to the attention of the integration developers
  • Help track interest in this feature being implemented
  • Allows us to notify you via email if this feature becomes available in the future

While I don't have an ETA on when this feature might be implemented, we will notify you via email if it is!

In the meantime you can use the API Request (Beta) action as a workaround. Please note that the API Request (Beta) action is an advanced feature so our support for it may be more limited. Not because we don't want to help, but because APIs can be so different and each request can be so unique. This makes it hard for us to know why the request may be receiving errors or not working as expected. If you’d like to get help setting up the API Request (Beta) action, you can consult with one of our certified Zapier Experts here: https://zapier.com/experts

Hopefully, this helps.