Is there way to rename user role name without plugin?

Is there anyway to rename a user role name via hook, instead of using plugin? Edit For example, administrator » owner 6 function change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); //You can list all currently available roles like this… //$roles = $wp_roles->get_names(); //print_r($roles); //You can replace “administrator” … Read more

Allow member to have access to custom post type only. Permission to only edit their own posts

OK I’m looking for the best way to attack this. I’m very comfortable with PHP and making custom post types with custom meta fields in WordPress. Here is what I’m looking at doing: User registers and is set at subscriber by default. User requests from admin to have permission to custom post type. Admin assigns … Read more

How to change a user’s role?

I have custom roles in my setup and I want to be able to automatically change a user’s role thru a function. Say user A has a SUBSCRIBER role, how do I change it to EDITOR? When adding a role we just: add_role( $role_name , $role_display_name , array( ‘read’ => true, ‘edit_posts’ => false, ‘delete_posts’ … Read more