Names for a set of user capabilities.

learn more… | top users | synonyms (1)

0
votes
0answers
63 views

Assign specific editor with custom user meta “A” to all authors with custom user meta “A” and exclude all other author access

I am looking to do the following: Logic/layout/cores: All contributors select a school in a custom user profile meta field All contributors also select a club in a custom user profile meta field ...
1
vote
0answers
113 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
4
votes
4answers
166 views

Create un-removeable user

How can I add a Wordpress user that can't be deleted (at all cost, not even by a superadmin) with some code? I can't find anything on Google about such a god-account. This morning a client of our ...
2
votes
1answer
69 views

How to stop a user from updating the post date

I have a custom role, called "dealer". Once they have posted a new post, they cannot delete it. It's important they cannot update the date either, and I'm a little stuck on how to do this. It looks ...
0
votes
1answer
67 views

Is there a way of retrieving the core WP capabilities?

I've created a plugin that adds new capabilities & assigns them to both WP & core WP roles. I would like to remove these capabilities when the plugin is deactivated, but I need to check that ...
0
votes
2answers
106 views

Custom user roles for access to specific parts of the site

I need to create specific sections of my site which should only allow certain users to access them. So basically, I'll be having a staff section - if the user is a staff member, they'll see a link to ...
0
votes
1answer
108 views

Change post status based on user role

I have a site I'm working on where users pay a monthly fee to be able to add content to the site and they are assigned a custom user role when registered. When their subscription is up their user role ...
1
vote
1answer
221 views

How to redirect specific post type with user role

I have created custom post type Books in my functions.php. Now I want to redirect every user (assigned with editor role). When they click to Dashboard it goes to this page: ...
0
votes
0answers
56 views

Editor on multisite cannot add or edit users

I'm creating a multi site install that that requires editors to be able to add and manage users. I've found the code to do this, which works perfectly on a single site install [link] but doesn't seem ...
0
votes
1answer
54 views

HM CMB: Role Select

I'm using human made's custom meta boxes framework (https://github.com/humanmade/Custom-Meta-Boxes). I want to add a select drop down in my metabox wich is populated from the roles on my WP site. ...
0
votes
1answer
184 views

How to reload the role specific registration form on validation errors?

I test a solution for separate registration for different roles and it works very well. But the validation part/function (see bellow) on errors reloads/reuse the generic registration link and not the ...
0
votes
0answers
113 views

Media Insert (Media Upload) doesn't work on author role in Front-End

I have a problem. In my front-end I have a Write a Post area, where users can write a post, and add their own images. I have inserted the media upload with wp_enqueue_media(); With my current ...
0
votes
1answer
46 views

how to change user roles for users who doesn't have any. (about 8000 users)

We have about 8000 users who doesn't have any roles. we need to change them to "contributor". How can I change them to "contributor"? Should I do on database? if so, which fields I need to update? ...
0
votes
0answers
163 views

WP User Frontend posts pending

I am using WP User Frontend, with a custom role and a custom post type: I have added my role like so: $wp_author_caps = array( 'delete_others_posts' => true, 'delete_pages' => true, ...
2
votes
1answer
137 views

WPMU - new users are automatically subscribed to the main blog - how to prevent that?

New users added via wpmu_signup_blog($domain, $path, $title, $user_name, $user_email); are automatically subscribed to the main blog. Can this be prevented? I only want them to be administrators of ...
-1
votes
1answer
216 views

WordPress Role Capability Restriction

I am working on a travelling site and planning to add following feature to the portal. User Registration capability. Let user manage there profile Let user submit there travel story for approval. ...
0
votes
1answer
51 views

Give editor ability to edit custom settings without access to Main Settings

I have created a custom settings page that I've positioned in tools > Custom Settings add_action('admin_init', array('siteSettings', 'register')); add_action('admin_menu', array('siteSettings', ...
0
votes
0answers
78 views

Custom Post Type supports author

I am using 'author' in 'supports' array for my 'custom post type', that shows a list of all users of the site on add or edit post screen to assign author for the post. But I want to filter that list ...
0
votes
2answers
170 views

update_user_meta on registration but only for default role type

So I am running the following to update user meta on regsitration: function set_user_rcp_default_subscriber($user_id) { update_user_meta( $user_id, 'wp_user_level', '0' ); update_user_meta( ...
0
votes
1answer
186 views

Membership subscription, change user role when subscription runs out

There are heaps and heaps of membership plugins out there, all of them focusing on restricting site content based on the users chosen subscription. I would however only want the user role to change ...
0
votes
1answer
296 views

Display Custom Field for a Specific Role, but not for Admin

How do I display a custom field for a specific role, but not display it on the profile page of the admin? When admin goes to edit a profile user that this role, the field will visible. I created two ...
0
votes
1answer
26 views

solution to prevent specific admins from altering site contents

I wonder if there is a solution already present that will restrict even the top level admins that I select from doing things such as installing plugins, disabling plugins, etc. that an admin normally ...
1
vote
1answer
740 views

How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?

The default taxonomy, category. By default, only those with the edit_posts capability can assign categories during post creation/editing. I have a role with very limited capabilities. I want to let ...
0
votes
2answers
376 views

Plugin creation - how to add user rights?

I wrote a little wordpress plugin and I want to grant only specific roles or users access to it. Is there a way to do this?
0
votes
1answer
239 views

I need to assign a role to visitors/guests

Is there a way to create a 'role' in wordpress for a guest? I am using a role visibility plugin which lets me choose the type of visibility to each rule. However a Guest hasn't got a role. I can ...
8
votes
4answers
993 views

How do I make a draft post accessible to everyone?

I have several unpublished posts in my Wordpress website and I am trying to make it accessible for normal users (who are not logged in) using the normal post slugs (site.com/post-here). I understand ...
2
votes
1answer
80 views

Why is unfiltered html allowed in custom fields for author / contributor roles?

I'm creating a WordPress theme which has a custom textarea metabox for inserting embed codes (soundcloud, bandcamp etc). I feel like I should be adding in some security to stop non-admin/editor users ...
0
votes
2answers
131 views

How to target specific user role?

I'm trying to place a simple bunch of codes to redirect the 'Subscribers' only, to the home page (or a desired page) after login. I thought to use if( current_user_can('read') ):, but that's a global ...
0
votes
1answer
79 views

Change User Role based on Point System Issue

Trying to change user role based on points. This is working seems fine till it keep increasing points. The problem happens when if we decrease points it is not changing role back to below stage. ...
0
votes
0answers
51 views

Customer portal (posts as checklist)

This is a pretty difficult one: We are extending our services for our customers. Our customers have to do some things like, buy a apple developer account, generate google analytics key, buy a google ...
4
votes
3answers
335 views

Is WordPress' is_user_logged_in() secure?

I've been wondering about this for a while. Is the following if statement safe enough? Is it easy to break through the code and get access to the content when not logged in? <?php if ( ...
3
votes
1answer
160 views

WordPress Capabilities: edit_user vs edit_users

The official documentation only mentions edit_users, but in the source I found many places are using edit_user, what is the difference? Are there any conventions for singular and plural capabilities? ...
4
votes
1answer
106 views

Allow authors to edit only certain users

I am trying to give my "authors" (who I have renamed "captains") the ability to access the user profile of their team members and only their team members. The teams are defined by a user-meta box ...
1
vote
1answer
121 views

map_meta_cap woes

I have created a custom post type and want it to behave like a page. Certain roles need to have access to it and not to posts or pages. So I created my custom post type with a capability-type and ...
1
vote
1answer
946 views

Reset default roles and capabilities

I've been having a difficult time adding custom post type capabilities to roles (Adding capabilities to default roles) and I suspect that my muddling around may have caused some problems. I also have ...
0
votes
2answers
115 views

Adding capabilities to default roles

I created a custom post type and gave it the following capabilities: add_action( 'init', 'create_team_page_post_type' ); function create_team_page_post_type() { $args = array( 'labels' => ...
0
votes
1answer
130 views

how to associate several authors to a custom post type

I have a "product" post type, to which i would like to associate several users according to their (custom) roles ( "designer", "producer"). They will be able to create (but not publish), edit and ...
0
votes
1answer
161 views

Can't manage to make translate_user_role() work

I've been looking into wpse archives to solve my problem but I can't manage to do such a thing. I built this code : $args = array('fields' => 'all_with_meta'); $users = get_users($args); foreach ...
0
votes
1answer
260 views

Better solution for managing media attachments with `wp_editor()`?

Currently using wp_editor(); on the front-end of my website as a content submission form. All posts submitted are set as a "Pending", which will later be published or deleted by an administrator. The ...
0
votes
1answer
324 views

User Roles: How to hide a plugin from showing in WP-Admin?

I would like to be able to hide a few plugins from showing in the WP-Admin for users who do not have a specific user role as I do not want those users to be able to edit the settings. Do I have to do ...
1
vote
2answers
30 views

Question regarding WP multisite feature

Hi I am developing a networking website using wp multisite feature. The website will have three different sites. buystuff.abc.com sellstuff.abc.com rentstuff.abc.com Now if "X" person register on ...
0
votes
1answer
99 views

how do I add role and capability after I create a new user

I have a simple requirement: 1. create a user 2. create a role for the user 3. add capability for the role First, create a new user $uid = wp_insert_user($userdata); Second & Third, create a ...
0
votes
4answers
3k views

what's the meaning of the field wp_capabilities in table wp_usermeta

I am new to wordpress, in table wp_usermeta I notice that we have a row meta_key meta_value wp_capabilities a:1:{s:13:"administrator";b:1;} First, what's the meaning of ...
1
vote
1answer
284 views

Remove wordpress author's capability to moderate comments on their own posts

WordPress authors have permission to edit others comments on their own post. How to disable this and still allow the authors to edit their published posts?
2
votes
1answer
49 views

Refine user taxonomy query based on role

I have a bunch of custom user taxonomies which I use to group users by, and then show these users on the front end with the following code (from taxonomy-{term}.php) <?php // Get each user from ...
0
votes
1answer
43 views

WPMU If MU site has no administrator, deactivate site

So I been tinkering with this thought. Working w/ WooCommerce Subscriptions - if the user is a recurring paid member, they can create and manage their own subsite. However, say the recurring payments ...
2
votes
1answer
758 views

Add a drop down list to comment form?

Can somebody help me to create a drop-down menu or (radio buttons) in Wordpress comment form, so that a new user could make a selection of their user roles (for example teachers + students) ? Output ...
0
votes
1answer
173 views

Custom Capabilities for CPT and Problem with current_user_can()

I have setup a CPT with custom capabilities. add_action('init', 'fac_product_posttype_init'); function fac_product_posttype_init(){ $product_labels = array( ... ); $caps = array( ...
0
votes
1answer
81 views

Saving a post, content filtering and user levels

I wrote a function to add and insert additional metadata to images. It looks like this: function add_image_orientation_fields_to_edit($form_fields, $post) { $current_value = ...
0
votes
1answer
71 views

Need to block user role from accessing bbPress all together

I've been looking at some options and I haven't seen a full solution to what I need. I need to block certain user_roles from accessing bbPress all together and from seeing the link to the page. Any ...