How do I programmatically set default role for new users?

I would like new users of the blog to have custom role, rather then Subscriber. How do I set this programmatically? I know that it can be changed from[...]

How to enable a site administrator to edit users in a WordPress network/ multisite setup?

I have a few sites in a network. I don’t want the site administrators to manage things like network plugins, but I would like them to be able to[...]

Users roles, make a page belonging to multiple users

I have a website with a lot of users. They are all editor (with same custom roles). They can add page and post, and edit only their own page/post. But[...]

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[...]

Display navigation menu item conditionally based on user capabilities

I have one “branch” of my main site’s navigation tree that should only be accessible to a set of registered, logged-in users. I understand[...]

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[...]