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

Give access of horizontal scroling plugin to user role editor

How do i give access to user role editor without using any plugin using bellow function function HSA_add_to_menu() { add_options_page('Horizontal scrolling announcement', ...
1
vote
1answer
202 views

Password protect media attachment - share across guests

I'd like to show certain content to people with a password, specifically links to media files like this: <?php if($currentuserid == foobar): ?> <a ...
0
votes
1answer
37 views

3rd Party Login in wordpress

I have two sites. One on wordpress and one non wordpress site. Now, I have used the header and footer from my non-wordpress site. What i want is that if user logs in on my non-wordpress site then he ...
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
0answers
22 views

Wordpress Multi User Entries

I have a question, i want my wordpress site has multi user, like contributor for my site entries. but, in the homepage, i want to show only my entries, not the others. but i also want a page or rss ...
0
votes
2answers
166 views

Check if user registered more than a month ago

How would I go about checking if current user registered more than, say, 30 days ago? I would like to display certain content only to that group of users. Thanks very much in advance for your help.
0
votes
1answer
57 views

Custom User Role

I know how to add custom user roles, but how can i make it so that when a user with, lets say a role with 'DJ', they come to the dashboard AND ONLY GET TO SEE: Users > Your Profile custom menu DJ ...
1
vote
1answer
215 views

How to customize wp_signon()

I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: Allow user to choose a password at the time of registration. Allow user to ...
2
votes
0answers
459 views

Copy a user from one WordPress site to another

Is it possible to copy a user from one WordPress site to another? I copied the record from the user table and all the related records from the usermeta table (12 records by default) but I think ...
3
votes
1answer
289 views

Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles

I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); ...
0
votes
2answers
1k views

How can I change plugin to give access to editor user role?

I want to give my editors access to a settings page to a plugin I've installed on their website. As of now, it's only visible to Administrators. The plugin I'm using is uTubeVideo Gallery, and there ...
1
vote
1answer
29 views

How can I allow users to make groupings of posts

I have a site with many research methods. I want to introduce the abilities for users to create groups of posts and save them for others to access, as a way to make the methods more meaningful for ...
0
votes
1answer
31 views

'post' only for editor and administrator

How can I make it so that only Administrator and Editor could access 'post' post-type? (just like 'page' post-type) I'm planning to only let Author and Contributor use the Custom-Post-Type which I've ...
0
votes
2answers
69 views

Sign in with social media accounts without creating a WP account [closed]

I'd like users to sing in with their social media accounts (facebook, twitter, linkedin, google+) without creating a WP account. This is for them to be able to leave comments on a website. Is this ...
1
vote
1answer
154 views

How to automatically apply a password to all posts within a custom post type

I am creating a custom post type, for which I want all posts to be password-protected with the same password. I realize that I can set a password on a post-by-post basis from within the admin panel, ...
1
vote
2answers
505 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 ...
0
votes
1answer
36 views

search does not yield access restricted results

If the user is logged out and tries to search something, he is redirected to the login page. How is it possible to have the search always show all of the results (including the excerpts and the ...
0
votes
1answer
39 views

Hiding media uploaded by other users in wordpress multisite?

I am using WordPress Multisite and want to hide media which others have uploaded. Like if X User of that site has uploaded any media in the site, Y User should not be able to see or access this from ...
1
vote
0answers
168 views

.htaccess browser caching and user login [closed]

I have a site that involves user logins for certain content. I am leveraging browser caching in the .htaccess file. When a user logs in, they are redirected to a profile page. The problem I'm having ...
0
votes
2answers
188 views

How can I stop access of unregistered user in wp-content/uploads directory without using .htaccess file?

I want to give permission to only registered users into my wp-content/uploads directory and stop access for those users which are not members on my site.