How to Delete User Roles in WordPress
X

Congrats, You are Subscribed to Receive Updates.

How to Delete User Roles in WordPress


How to Delete User Roles in WordPress. Deleting a WordPress user role can be done through the function remove_role (). But the function can be executed after the theme setup or a plugin activation. Because the removing role can be affecting the settings of a WordPress site. So this can be done on the time of theme change or plugin activation.
Let’s see an example code to delete a user role from database.


The above one removes the subscriber from your words options table.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, OpenCart Theme Development, PHP, HTML, CSS, jQuery, Bootstrap development and content SEO.

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts