Restore Default User Roles in WordPress
This is a pretty goofy function, but a client once deleted the default user roles using some plugin, and I just threw this into functions.php to re-create them. It’s hooked onto admin_init, so it runs when you load any back-end page. I set a transient that keeps the function from running more than once (and […]