I want to set up user permission in my WordPress blog. Can you guide me? Thanks
Medeea Selected answer as best
I want to set up user permission in my WordPress blog. Can you guide me? Thanks
You can use a plugin for this.
I recommend Members – Membership & User Role Editor Plugin
If you want to do it with PHP, you can add a new user role like this. Copy the following code into your functions.php file of your theme / child theme / plugin
add_role('website_user', 'Website User', array( 'read' => true, // Allow this user role to read posts 'edit_posts' => true, // Allow this user role to edit and add posts 'delete_posts' => false, // Don't allow this user role to delete posts ));
Login bellow or Register