Add Roles after checkout
-
I have been having a very hard time and could really use some help. I am new to code, but trying to learn. I have a field “sell_products” and if “Yes” selected add “vendor” and membership user role example “pmpro_role_1”. If “no” selected then only add “pmpro_role_1”. I have been trying to use “do_action( ‘pmpro_after_checkout’, int $user_id, $morder );”. I would great appreciate any help.
- You must be logged in to reply to this topic.