Custom Action
-
Hi!
I’m using your plugin to create a user via Zapier. I’m currently trying to update a user’s meta with a custom action that I’ve set up, but it’s not updating the custom meta.
This is the code:
function custom_role_meta_fn($user_id) { $user_meta= get_userdata($user_id); $user_roles=$user_meta->roles; if (in_array('subscriber_custom', $user_roles)){ update_user_meta( $user_id, 'simple-restrict-slug', 'yes'); } } add_action('custom_role_meta', 'custom_role_meta_fn');
Could you help me with this issue?
Thank you in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Action’ is closed to new replies.