The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
20 views

Why does get_posts only show results for Admins or logged-out users?

I use a get_posts() call with these arguments: array(6) { ["include"]=> string(14) "1633,1634,1635" ["post_status"]=> string(3) "any" ["post_type"]=> string(10) "attachment" ...
0
votes
2answers
5k views

How to set privilege to wordpress subscriber for private page

I am having private page.I want to show this page only when "subscriber" logged in."Editor" should not access this page.How can i set the privilege.
0
votes
1answer
21 views

remove wp admin menu by customer user role

I have a custom user that i'm trying to minimize access for. I have a few admin menus in the toolbar that I'd like removed but only for this customer user role. I currently have it working for ...
2
votes
1answer
952 views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
0
votes
2answers
2k views

Create a User Role with permissions to only upload files to the media library?

Some of the employees at my organization need to be able to upload files to a folder and share a link with others. It’s primarily documents like pictures, pdf’s and Word documents. And instead of ...
11
votes
2answers
15k views

How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin. Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress ...
4
votes
2answers
2k views

Only allow administrators and editors to access wp-admin

I am trying to restrict access to wp-admin so that only administrators and editors are allowed. At the moment I am using this function: function restrict_admin(){ //if not administrator, kill ...
5
votes
2answers
2k views

How to programatically change username (user_login)?

As in the title, how to programatically change user's login? I wanted to use wp_insert_user function, but it appears that when updating current user, it doesn't change their username. Should I use ...
1
vote
1answer
36 views

Set default page for user account in admin

I have set up an ecommerce site using wordpress/woocommerce and am now adding the users who will be dealing with the orders to the site. The only part of the site that they need to have access to is ...
4
votes
2answers
149 views

Allow anonymous user to access Themes Customizer

I created a theme and use Themes Customizer. Is there any way I can give anonymous users access to the themes customizer without the ability to save it? It will be very convenient in terms of user ...
0
votes
1answer
35 views

Username has been exposed

I am running a WordPress installation, I am using the theme created by my own. I haven't displayed any author related information in the theme. But I am getting server logs with ...
0
votes
1answer
55 views

How can I allow access to two user accounts using one login?

I have spent the last two hours searching for this and I cannot find a solution to my problem. I have a WP site with WooCommerce running which allows to users to create their own store. My client ...
0
votes
0answers
23 views

Client login area with gallery

I'm working on a website for my photography business, and I've been using smugmug's gallery management and sort of login tools (im a very tacky way) to give each client a login they could then use to ...
1
vote
0answers
16 views

Where are $current_user->allcaps set?

I recently found a problem with WP in which even the admin has no permission to get to anything on /wp-admin/. Oddly enough, when I compared the $current_user->allcaps to those on a normal site, I ...
2
votes
2answers
4k views

How can I hide media library images from general users?

As an admin I really like the features and functionality of the WordPress 3.5 media manager. With a multi-user site however all users can see all images in the media library - whether uploaded by ...
0
votes
1answer
49 views

How to List only the users created by a particular user

How can I list only the users created by any particular logged in user. Suppose,I'm a Subscriber and there are users already registered, I then added User1(as Associate), User2(as Subscriber). When I ...
2
votes
1answer
36 views

Let new user role to 'edit_others_posts' of other user role, not of its own type

In my system, I'm making two new roles: Third Party (TP) (lesser privileges) Data Entry Operator (DEO) (powerful over Third Party - but not of its own group) My CPT 'capabilities' parameter is ...
0
votes
1answer
32 views

Managing Users and Creating Groups [closed]

We're going to be transitioning from a small, outdated CMS that's no longer supported, to WordPress for our new CMS. Our old CMS allows us to restrict access on the back-end so that by default User A ...
2
votes
1answer
530 views

Can an admin check passwords of registered users?

I have a site where I open accounts for users and hand over login credentials to them. Now, Let's say that a user forgot his password, and wants to reset it. He clicks "Lost your password?" link on ...
1
vote
3answers
5k views

Add new media uploader at frontend for wp 3.5+

I create a form for user to submit content from the frontend. The only problem is I don't know how to handler the image upload. So, I want to know how to use the WP media uploader in the frontend. ...
1
vote
1answer
73 views

show text If special user is logged

I want to check if special user id is logged in WordPress. i know we have a function name is_user_logged_in() but we can't change the id of user logged in, in this function. I need a function like ...
4
votes
4answers
8k views

How to restrict access to uploaded files?

I have a restricted area on a website that can only be accessed by logged in users. For that I created a page template with a 'current_user_can()' condition. My problem is that the documents attached ...
0
votes
0answers
28 views

Prevent user to see detail view of attachment of another user

This plugin prevents unprivileged users to see images, that other users uploaded: add_filter('parse_query', 'own_content_only_restriction' ); function own_content_only_restriction( $wp_query ) { ...
0
votes
0answers
84 views

Require users to login first before accessing certain product pages?

Some of my products are "external" products...so if the user clicks Buy Now, etc, they go to a different site. So, before they can do that, I'd like them to have to register on my site (or be logged ...
0
votes
3answers
3k views

Redirecting or displaying a message on first login

I've been trying to decipher a way to display a message to a user on first login and can't seem to get it to work. I'm not sure what I'm missing, or if there's something else I need to do. Any help ...
0
votes
1answer
46 views

Is there a way to set the user Role based on email domain

For example if a user registered with the email domain: example@gmail.com They will be set as a contributer. but if any other email such as example@hotmail.com they will be set as a subscriber? ...
0
votes
0answers
31 views

Editing posts using user credits

I am looking for a cleaner or better way to accomplish the following. Credits are stored as user meta _credits (int). Users can only edit pages, posts, custom post types if they have credits left. ...
0
votes
0answers
19 views

hide the administrator from the users dashboard

How can I hide the administrator from the users dashboard after wp-admin login? All the options I have found here are for older version of Wp and do not work. WP Version 4.1.1
0
votes
0answers
512 views

View file but prevent from DIRECT URL ACCESS?

wordpress root folder .htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?SOMEIP [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?SOMEIP.*$ [NC] RewriteRule \.(pdf)$ denied.php ...
0
votes
0answers
17 views

MySQL Trigger Help

I followed this question's answer to make my multiple wp installations to use a single user database, I want this: to happen every-time a new user registers. Can someone teach me how to make a ...
0
votes
1answer
21 views

Randomize access to post

I want to have have my users gain access to certain posts randomly when they register and then once a week randomly give them access to another post that they didn't previously have access to. The ...
0
votes
0answers
45 views

Admin toolbar not showing right after `wp_signon`

I'm implementing a login wall using the template_include filter and a is_user_logged_in() conditional check. I authenticate new logins inside the same hooked function using wp_signon(): add_filter( ...
0
votes
1answer
150 views

How can I restrict a custom WordPress role access to only a specific plugin?

I created a custom plugin . I want to add some admin side users to use that plugin. I created a specific role . But i want to restrict the those users/role access only that plugin not the entire ...
0
votes
2answers
337 views

Adding guestbook to my wordpress site

I´m trying to add something like a guestbook, where the user can write about our services, something like comments with few more content like country, facebook page... should i do this with a single ...
4
votes
3answers
10k views

Allowing users to edit only their page and nobody else's

We currently have about 50 pages, each of which I want a user (eg, bob, rob, smith) to be able to edit only 1 page. For example, bob & smith each have their own page. I do not want bob to be ...
2
votes
1answer
681 views

How can I have different groups of editors only allowed to edit certain parent+subpages?

I've tried a bunch of different plugins, including Role Scoper, Advanced Access Manager, User Account Manager and more, to accomplish this but can't seem to get it working right. Basically, the ...
0
votes
1answer
28 views

Restrict users post for himself

I am trying to build a system that lists users posts only (that I have managed to code) but also restricts users from seeing eachothers posts. If user A has his post under: domain.com/category/postA ...
0
votes
2answers
27 views

Custom Roles for access to specific term(s)

I'm looking to create a membership-only site which will serve to display logged-in users their company's stored documents. I have a custom post type named Boxes. I have a custom taxonomy called ...
11
votes
3answers
24k views

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 ...
0
votes
1answer
21 views

Disable site visiting and user logins excepting for a specific user

I want to disable temporarily site visiting and user logins to a multisite blog for the site maintenance time, excepting for super-admins and for a specific user. I found this function (thanks @joshc) ...
0
votes
0answers
70 views

Lost access to entire network after recent update

I have a private Wordpress network covering 11 different sites, all hosted under separate TLDs (using WordPress MU Domain Mapping plugin; version 0.5.4.2, if that matters). This network is at a very ...
0
votes
1answer
10 views

How to enable to the user send content and save as draft entry?

I was wondering if is there a way to enable to the user to send content using a form, to select different options like categories, attach images and so on, and after submit the content save as a draft ...
1
vote
2answers
504 views

Restrict Access in Admin Panel

I want to restrict access to certain plugin pages / normal WP Pages. I've found a way to Hide these pages from the menu but currently not restrict them. For instance, I have an editor and I don't want ...
1
vote
2answers
5k views

Allow Users Access to Custom Post Type Only

I am in a similar situation to this person, only I need a bit more hand-holding. I don't have a good understanding of php but can cut and paste code with the best of them. I have Justin Tadlock's ...
2
votes
1answer
4k views

Restrict admin access to certain pages for certain users

As the title says, I'd like to restrict back-end access to certain pages for certain users. While doing a site with 45-50 pages, I realised it would be a much better user experience if the Page menu ...
0
votes
0answers
51 views

Is it possible to restrict a specific user to edit a specific custom post.

I have a site setup with a custom post for team member profiles, blog posts etc ... I am currently setting up user roles so that users can edit certain areas of the site. I currently use Adminimize to ...
0
votes
0answers
48 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
6
votes
1answer
2k views

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I'd like the users to see only his/her own comments and the comments that are left to ...
0
votes
2answers
118 views

Deploying Wordpress for clients - what do they have access to?

I've developed websites from scratch up till now and would like to switch to using Wordpress to save time and money. I've done some theme customization and plugin work so far. I can see that users ...
2
votes
6answers
5k views

Website Visible only to Registered users

How can I disable access non registered users? If the user is not logged in I would like to redirect them to a custom registration/login page. Is it possible this using below code as I dont want to ...