Please help for User Meta based triggers
-
Hi !
I have just downloaded the plugin and trying to set up automations based on user meta.Based on this page : https://automatorwp.com/docs/getting-started/tags/ it seems to me that I would need to use this expression {user_meta:META_KEY} in order for the plugin to recognize the meta I want my trigger to be based on.
Hence, I have used the following : {user_meta:profile_visits_count} (“profile_visits_count” is located in the table “wp_usermeta”) but the automation is not working at all.
FYI, for this automation the
Trigger is :
“WordPress User meta {user_meta:profile_visits_count} gets updated with 50 1 time(s)
Filter AND User role contains Administrator”
Action is : Send an email to userEven updating the table manually for an admin user via PHPmyaAdmin does not trigger the automation.
I would love to know if it is because I am doing something wrong and your help to correct it.
Looking forward to your reply 🙂
Kind regards, Clea
-
Hi @clearoz
There is a small confusion
Elements inside those keys “{}” are tags, tags are replaced by a dynamic value
For example, if your user first name is “Jhon” and you place on the “Send email to user” action the subject “Hi {first_name}” it will get replaced by “Hi Jhon”
The solution:
Simply change your trigger from:
WordPress User meta {user_meta:profile_visits_count} gets updated with 50 1 time(s)
to:
WordPress User meta profile_visits_count gets updated with 50 1 time(s)Note: Updating the value directly from the database will not launch your automation, the unique way this trigger gets updated is when your user metas are updated through WordPress
Hope it helps!
Thank you for your feedback !
However, despite changing the recipe and having the user do the action, the automation is not being triggered.
I have recorded a video that shows that I have created an automation based on total_friend_count reaching 3.
I show that in the database, the count for user 355 (Lea) goes to 2 then, after accepting an invitation, reaches 3 (friends), and hence should trigger the automation but does not.Could you kindly look at the recording and let me know where I might have made a mistake ?
Thank you 🙂
Hi @clearoz
mmm is possible that, at the moment the user performs this connection, the meta does NOT gets updated using the WordPress function (something required to be detected by AutomatorWP or any other plugin) and is getting updated directly through a database query
Since you are using BuddyBoss, you can make the trick using the triggers included in our BuddyBoss integration and the AutomatorWP filters feature to, on every friendship accepted, check if the user total friends count like this:
Hope it helps!
Thank you for the feedback !
Your suggestion does require to purchase the premium Buddyboss addon though.
I’ll trust that the trick works and will go ahead and purchase the premium addon.Kind regards,
CleaNothing @clearoz!
Glad to help you
- The topic ‘Please help for User Meta based triggers’ is closed to new replies.