WordPress sending data with add_action
This is untested but you should be able to hook into ‘wcvendors_approve_vendor’ action. It is also passing the $wp_user_object to you which you could get the user id from…OR $_GET is a global, so you can still access $_GET[‘user_id’] if you wanted. The ’10’ in the add_action is the priority and the ‘1’ tells it … Read more