وردپرس

Can we switch/change user role instead of adding new role to existing role?


Hello,

I’ve been doing some testing with the plugin and I know that it adds a new user role (whether a role you created or the plugin created) to the existing role of the buyer of a subscription. For example if a user already had the role “Old”, and buying a subscription gives them a new role of “New”, then the end up with both roles at the same time. This is a problem when I use other plugins that allow things based on user roles and there is a clash so rather than adding a role (Old + New), can I switch/change the role and change it back upon subscription cancellation or expiration ie Old becomes New and then back to Old?

Thanks

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا