Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to remove/limit Editor accounts privileges, to prevent them from deleting media and pages created by Admin

How can I remove (or edit) Editor account privilege's, to prevent Editor accounts from making any changes to things Admin accounts upload or create? For instance, Prevent Editors from deleting/...
Omar Juvera's user avatar
0 votes
0 answers
46 views

Allow users to edit post without logging in

I'm working on a site where non-logged in users are able to submit their posts. It's easy to do on front end, however, when the posts need to be edited, it's a completely different story. So, is there ...
Sam1501's user avatar
  • 11
0 votes
1 answer
224 views

Wordpress change role from administrator to author by itself (automatically)

do anybody know this kind of phenomenon? I do not have any user managing plugins installed in my WP, but after some interaction e.g. editing pages or creating postings (its not matter) WP changes for ...
RestAPPDev's user avatar
0 votes
1 answer
100 views

(How) does WordPress protect direct access of user data?

I am setting up a WordPress with a user system. User information (names, profile picture) of all users should be private, and only accessable when logged in. The "Ultimate Member" plugin ...
M.G.Poirot's user avatar
0 votes
0 answers
34 views

Multisite Login Access Restrictions

I am building a multisite where users can sign up to create a subsite about there business. I would like to have them be able to login to the backend and edit there subsite but restrict them from ...
Daemon's user avatar
  • 1
0 votes
1 answer
363 views

WordPress password as plain text in email

I am working on a project and we need to send users current passwords when they log in. So the only option is to the use the password reset feature when the user enters the email, an email will be ...
Sannan Malik's user avatar
0 votes
1 answer
247 views

MySQL query to list users who never signed in

What MySQL query can I use to get a list of users who have never logged in to WP? Some background... My WordPress website has been running since 2015 and initially, I had a newsletter form that would ...
Lazhar's user avatar
  • 183
1 vote
1 answer
94 views

How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount

I'm looking to write a little function that counts how many pages the user has clicked through in this section. When it gets to a certain amount, I want to prompt them to log in and prevent them from ...
DJZEEGLER's user avatar
  • 119
0 votes
1 answer
88 views

How do you manage your pages or functions that require logged-in users?

I'm having more functions and pages that require my users to be logged-in. Below is what I have in each of my functions, kind of a hassle to keep repeating this code. $user_id = get_current_user_id(); ...
ratib90486's user avatar
0 votes
1 answer
37 views

Is there a plugin for Wordpress for creating 'Accounts' where all users who belong to that Account can only see Account data? [closed]

Is there a plugin for something where I can group users into an 'Account' and then one particular Account is restricted to seeing only content targeted to that group (therefore a user would need to be ...
fakeguybrushthreepwood's user avatar
0 votes
1 answer
536 views

Update user role for expired membership

Is it possible to use a function in functions.php that would automatically change user role when a membership goes from status "active" to "expired" ? For example : if an active ...
nevax's user avatar
  • 1
1 vote
0 answers
2k views

wordpress user roles are not working

I have never assigned or used a role before on this site, I have just created a new user role with plugin "user role editor" and also assign an editor Role to other account, whenever I log ...
Rehab Ahmad's user avatar
1 vote
1 answer
21 views

Displaying different in-page content to cliente/admin

i'm a young informatic engineer student who is developing his first wordpress website. It is a booking website when a client can see the available hours in certain local and book it, and the local can ...
javier romero's user avatar
2 votes
1 answer
1k views

Check if someone is editing a post (this content is currently locked)

I'd like to create a kind of auditing. How can I check if an user is modifying an article? Is there a db query I can do to achieve this task? I've found the following solution but I wonder if there ...
Revious's user avatar
  • 323
-1 votes
1 answer
891 views

Limit user access to installing/configuring a plugin?

I'm hiring a freelancer to install a plugin for me and setup a few of the plugin's more complicated settings. I don't know him personally and would like to limit his access, as there is sensitive ...
Nathan's user avatar
  • 1
1 vote
0 answers
377 views

Good way to block users within a multisite setup without deleting them?

This is probably a common problem with multiple possibilities to solve. However I am asking for an easy solution as I guess I am not the first one to have this problem. Assume we have a huge company ...
Blackbam's user avatar
  • 565
0 votes
1 answer
173 views

Allow admins to login as other users

My question is about WordPress in general. How can I give admins the ability to log in and do things that other users can do? My specific use-case for this is, in WooCommerce, when an admin creates ...
Jon's user avatar
  • 325
0 votes
1 answer
50 views

restrict admin panel sections to users

I have found out how to disable wordpress admin menu items from users other than administratos. What I would like to achieve now is every user can access only his user page (only "Your profile") and ...
dvn22's user avatar
  • 1
1 vote
0 answers
115 views

Problem with automatic role change through cron job

I have a function called by a daily cron job that automatically changes the role of users after a period of time. The 1st role update should happen 120 days after registration, and a 2nd role update ...
Cyrille Kriegel's user avatar
1 vote
0 answers
470 views

Subsite access without being a member of the subsite in wp multisite network

How can a user access a subsite without being the member of that subsite in a wp multisite network? What I understand is that a user can not access a private post in a subsite if he is not the ...
bakar's user avatar
  • 101
2 votes
2 answers
5k views

Can you have multi-site WP and keep users separate?

I'm aware that multi-site exists but I've never used it. Could I use it in a type of reseller mode, where I ran one install of WordPress but provided completely separate sites for separate users? ...
AmbroseChapel's user avatar
-1 votes
1 answer
2k views

file upload user profile

I am working on a medical reporting site in wordpress, where the requirement is that admin can upload a seperate .pdf file to different users' profile & only the profile owner can download it
user141987's user avatar
0 votes
0 answers
93 views

Users getting linked unwanted to main mu in WordPress multisite (WPMU)

Sometimes in WPMU a user from one of the networksites gets linked to the main mu as well. It seems to me like it is completely random and very rare so I cannot easily simulate this. It's easy to just ...
Maartje's user avatar
  • 547
3 votes
3 answers
1k views

Can I create users that have access to *some* other users posts instead of all other users posts?

I’ve been using basic user rights functionality on a multi-user WP site for a while and its worked out great, having most user accounts just have access to their own posts but a few “editors” having ...
AdamJones's user avatar
  • 328
0 votes
1 answer
1k views

Can I Create a Second Admin Level User Role?

I want to create a second User Role, which has the same priveleges like a Admin User Role. This way I can use the Adminimize plugin to disable some features there. I'm trying to have a User Account ...
Arne De Belser's user avatar
1 vote
0 answers
360 views

Reset Password policy

Looking for to add reset password policy. Password specifications : 12 characters in length, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character. I find a hooks for manage ...
Samuel's user avatar
  • 354
6 votes
1 answer
14k views

Hide Admin Menu for Specific User ID who has administrator Role

I am trying to hide almost every single admin menu from wordpress dashboard for a specific user id who has administrator role. I want to give that user only option to edit a certain custom post type ...
Md. Amanur Rahman's user avatar
4 votes
1 answer
881 views

Basic auth WordPress REST API dilemma

Today I tested Basic Auth for the WordPress REST API and it worked perfectly. However, I heard this was a dangerous way of authentication. This is understandable, since people can look into JS files ...
Jayce's user avatar
  • 43
1 vote
0 answers
127 views

How can I allow an User to publish only 5 posts per month?

I want to give my users the ability to publish posts. User Role 1: Can Publish 5 Posts per Month User Role 2: Can publish 10 Posts per Month And User Role 3: Can Publish 15 Posts per month It should ...
Leon's user avatar
  • 11
0 votes
1 answer
23 views

How to use url formatter with integer

I have this below code to prevent users from deleting the quizzes. if( in_array( $pagenow, array('admin.php') ) && ( $_GET['page'] == 'wpProQuiz' && $_GET['action'] == '...
Pravin Nath's user avatar
1 vote
1 answer
367 views

How to disable a specific page for a specific user

For say, I have this page https://www.website.com/courses/wp-admin/admin.php?page=wpProQuiz&action=delete&id=1 I want to disable this page for the username remo. How can I do this?
Pravin Nath's user avatar
0 votes
1 answer
809 views

Delete a user from frontend

I'm developing a user management table, in which an user (I've already set restriction for for some specific roles) can create/edit or delete a user. How can I delete a user by clicking on delete link ...
Akshat's user avatar
  • 1,197
0 votes
1 answer
68 views

Custom User Role: Can Edit Own Page, Cannot Create New

I'm just walking around in circles here trying to figure this out, but I have a custom user role Dealer who should only be able to edit a Page that he is the Author of. But I don't want this user to ...
dcolumbus's user avatar
  • 637
1 vote
2 answers
1k views

remove/hide pages from users backend

I'm using this code in functions.php to hide/remove some pages from custom users backend and works well, but how can I reach to hide the subpages as well? add_filter( 'parse_query' , '...
mesu's user avatar
  • 11
0 votes
1 answer
67 views

Wordpress install checking permissions of user id 0

I'm getting the popular Sorry, you are not allowed to access this page. But I can't seem to find a solution for the cause of it on my blog setup. I've added the function function check_user_perms( $...
macdja38's user avatar
  • 101
1 vote
1 answer
174 views

Log all users out of all locations after 24 hours

Good day, experts. Please I need the code that can help me log all logged in users on my WordPress website out of all locations after a particular time. This is what I have so far: add_action('...
Raphael Oluwasanmi's user avatar
1 vote
2 answers
1k views

Hide everything on site for visitors except specific page IDs

I have a client who wants to close down access to the entire site, every post, category page, archive etc (while keeping the content), except for three specific pages (Start, about us, contact). None ...
talven's user avatar
  • 103
0 votes
1 answer
614 views

throttle/limit a logged in user's http requests to specific page on a per day basis

I have a resource on my WordPress page that I only want to show X times per day per logged in user. I'm using the twenty sixteen WordPress theme. Currently, Guests / visitors / non logged in users ...
Peter Noges's user avatar
-3 votes
1 answer
50 views

How to give different user access to different people?

I have a video tutorial website where I have to provide videos. For that purpose I have to give different user access to those who login to particular courses. So can you please help me what is the ...
roja.k's user avatar
  • 1
0 votes
0 answers
1k views

How to bulk change user role to "No role for this site"

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist on ...
j08691's user avatar
  • 785
-2 votes
1 answer
936 views

One folder to be accessible by one user

so I am making wordpress website and the idea is that I want to upload different files for the different users but I want the user to see only his files.The problem is that when I copy the url that ...
George Dimov's user avatar
0 votes
1 answer
253 views

Redirect admin 403 "Cheatin uh?" admin pages

Blocking role capabilities on the admin returns the 403 "Cheatin Uh?" page. What is the best way to redirect this to 403 page to perhaps the dashboard, homepage, or a custom 403 page? I know I could ...
Bryan Willis's user avatar
  • 4,459
-1 votes
1 answer
1k views

You do not have permission to access this document on form submit

I have few little problem. If i submitted the user credential for login no matter login detail correct or incorrect page goes to Forbidden on submit button. What i do for this problem Forbidden page ...
Pavnish Yadav's user avatar
0 votes
1 answer
426 views

Restrict Access to the User Profile

What I want is, give different Roles different kind of access to the user profile. For example, I want to show the section "Name" but not the section "Contact information". From other sections I just ...
Fabian's user avatar
  • 101
1 vote
1 answer
506 views

Create custom post with custom user rules

I am create a custom user post type testimonial and want to give permission to user to edit and delete there post but its show some error. 1. I created user rule. function ...
Shiv Singh's user avatar
0 votes
1 answer
141 views

post acces for guests / unregistered users only

is there a way to restrict complete posts/pages to be viewed by guest (unregistered) users only, hide them from subscribers/logged in users? These posts shouldn't show up in category archive pages for ...
akeeem's user avatar
  • 1
0 votes
1 answer
348 views

Unique password to access a section site

I am working on a wordpress site. I am selling a digital course on it. Users interested in the course will pay locally via bank and send me payment details. So after I confirm their payment I will ...
Abdulfattahu Riliwan Oladipupo's user avatar
2 votes
1 answer
2k 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 ...
trustfools's user avatar
0 votes
1 answer
70 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 domain/author/author-...
Dipu R's user avatar
  • 141
1 vote
0 answers
210 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 ...
NoBugs's user avatar
  • 452