Been searching for some answers about changing a user's role by clicking on a button on an upgrade page. I need a free upgrade button that I will add style to, and I already have a paid upgrade button.
Does anyone know how to code a function to change a user's role with the click of a button? I know this may seem jovial, but I'm not the best at php.
Thank you for any support!