Questions tagged [user-access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

Issue with front-end ajax, getting a 302 redirect when accessing wp-admin/admin-ajax.php

I want to use wp ajax for frontend logged in user but showing error of 302 Found and call home page. it is working fine for admin users and non logged in users. here is network log screenshot: i ...
Gauravbhai Daxini's user avatar
0 votes
1 answer
178 views

How do you make a custom post type invisible for subscribers

I am trying to make a custom post type invisible for the user role subscriber. How do I do that? I tried the following, but that didn't seem to work. My post type is called request. $role = get_role(...
TheKidsWantDjent's user avatar
0 votes
2 answers
524 views

How can I access string value in an array?

currently I am developing a site using the Dokan multivendor plugin. I added a custom field in the registration form and The below code is being used to add the custom field in the registration form ...
M.S Shohan's user avatar
0 votes
0 answers
92 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
2 votes
3 answers
889 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
  • 318
0 votes
1 answer
793 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
0 votes
2 answers
1k views

How to restrict an admin page, if the user is not superadmin?

I use the All In One Seo Pack on my multisite, but this plugin have admin pages, what is not fall under the rule what restrict the plugin pages from my users, so I using the remove_cap( $cap ); about '...
Galgóczi Levente's user avatar
1 vote
0 answers
340 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
  • 334
3 votes
2 answers
2k views

how to add custom user capabilities using add_user_meta or something else?

i have two WordPress sites with SSO Configurations as described here but the plugin in the answer didn't work for me so i tried to write a code to add capabilities for second site users: $...
Mohammad Anbarestany's user avatar
0 votes
1 answer
780 views

Redirect non-admin after login, and in url - /admin

How and where, can i make function, that will redirect user (if it's not admin) to my specific URL? (the same - when logged user type /wp-admin URL.)
Michał Misiek's user avatar
0 votes
1 answer
39 views

I cannot access but but wp-admin works normally

anything is wrong with my website: buhehe.de it is down, but i can access buhehe.de/wp-admin and other websites which are hosted on some server are working. Is anything wrong with plugins? I installed ...
ნიკა ხაჩიძე's user avatar
7 votes
4 answers
10k views

HTTPS leads to Sorry, you are not allowed to access this page

I have a fresh Wordpress installation that works fine. I decide to make it work under HTTPS so I go in the General config and change the "Wordpress Address" and the "Site Adress" from http://my....
Fred's user avatar
  • 71
6 votes
1 answer
13k 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
808 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
0 votes
1 answer
154 views

How to restrict access to a single for users I've authorized? [closed]

I have a WordPress site which doesn't require any login or user registration. However, I have just created a page on my website which I would like to restrict to users I have added myself. I would ...
Alex F's user avatar
  • 101
1 vote
3 answers
2k views

How do I remove the Other Roles field (from User Role Editor plugin) in wp-admin/user-new.php

Screenshot below says it all. I want to remove/hide this field from view so the user is unable to edit it. It comes from the User Role Editor plugin and I want to make the changes in functions.php in ...
Jason's user avatar
  • 21
0 votes
0 answers
838 views

Restrict user to terms in a custom taxonomy registered for both posts and users

I have a custom taxonomy 'siteSections' that is registered for both posts and users. The idea was to limit certain sections of posts/pages to specific users, by assigning terms to pages and assigning ...
kavon's user avatar
  • 1
1 vote
3 answers
2k views

Allow non logged users to visit only login page and password reset page

How can I redirect users if they want to visit any other pages, but login page and password reset page? My login page is actually my homepage and I want to redirect all of them to login page if they ...
Vucko's user avatar
  • 33
0 votes
1 answer
51 views

about visibility in wordpress regarding of roles

I have a problem with my Wordpress side: only admin or editor could use it. Other people could see only general pages but clicking on pictures create error: //path to picture: http://....
User's user avatar
  • 1
1 vote
0 answers
123 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
22 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
314 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
720 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,187
1 vote
1 answer
704 views

How to hide a specific part of dashboard for non-admin roles?

I am trying to introduce controls to users and promote users with elevated rights to monitor the users (which is still done my me, as the site admin) This is because the task is a bit comprehensive ...
Sid's user avatar
  • 129
1 vote
1 answer
451 views

admin_post action not usable if admin access denied to user

Right now users with a certain role would be redirected away with a hook into admin_init depending on the following conditional if (is_admin() && in_array($role_id, $user->roles)) ...
TurtleTread's user avatar
0 votes
1 answer
71 views

How to handle this specific case of custom post type?

I'm working on a WP plugin called WP SoundSystem. It's a plugin designed to run on a "music" website : it handles artists, tracks, albums, playlists... through custom post types and tools. You can ...
gordie's user avatar
  • 482
0 votes
1 answer
693 views

How to create new permission for custom post types for doing specific tasks

I am in the need to create new permissions with the following access: Post_Type_A (Custom post type): Access to Post_Type_A content type Post_Type_B (Custom post type): Access to Post_Type_B content ...
Subrata Sarkar's user avatar
0 votes
1 answer
21 views

Retrieve details of my wordpress site

I recently created a wordpress site for starting a blog. But I cannot see it listed in my wordpress account with my other blogs. So either I used some other email address that I can't track or the ...
Niv's user avatar
  • 1
0 votes
1 answer
593 views

Restrict category access to specific users/groups. Author always has access

I'm running a Wordpress website. I want to make some of the content on it - posts and custom post types, who belong to a specific category - accessible only to the users, who have been granted access ...
Nikolay M.'s user avatar
0 votes
1 answer
26 views

Can access main URL and Dashboard but not any posts or pages [closed]

I'm not sure what happened. But this week I suddenly lost access to the pages and posts of this URL: www.michaelfstewart.com GoDaddy had notified me of some files to delete as they were suspicious. ...
Mike's user avatar
  • 3
0 votes
0 answers
1k views

How can I remove "Add new" button on custom post type

I would like to hide the "add new" button from my custom post type. I tried doing this : (from this answer) 'capability_type' => array('place', 'places'), 'capabilities' => array( ...
Mohamed Salem Lamiri's user avatar
0 votes
1 answer
63 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
0 votes
1 answer
151 views

How to password protect pages in WordPress

Every article and help document I find on this topic is focused on the WordPress built-in feature using the page->Visibility setting which is extremely limited and useless for true page protection. I ...
php-b-grader's user avatar
0 votes
1 answer
410 views

I can not access my local PhpMyAdmin control panel

I have created a local WordPress (WP) website on my computer using the limited edition of DesktopServer. I then used FileZilla to download the WP files along with the associated database. Now I cannot ...
Sumru's user avatar
  • 11
0 votes
1 answer
444 views

After Upgrade: $user becomes unknown (id: 0) after successful login?

I just disabled all plugins, and then upgraded my WP to 4.7.3. And then first thing i do is to login as Administrator to the Panel. Then i'm getting: Sorry, you are not allowed to access this page ( ...
夏期劇場's user avatar
2 votes
3 answers
2k views

Hide Specific User Page

I wanted to know if there were any ways to easily hide a selected user's user page. I've yet to find any code that does so. I've only found code to remove all user pages. Thanks
bakingsoda's user avatar
1 vote
2 answers
3k views

How can we Restrict to access a certain wordpress page to all ip address except some which we allow

i am trying to restrict particular web page using php which should be displayed only to the allowed Ip Addresses and for remaining all IP Address it should not be accessible. Requirement: 1.The page ...
Praveen's user avatar
  • 230
4 votes
4 answers
2k views

Show custom post type endpoint in REST API just if user has capability

I created a custom post type for WP, that should just be visitable for user that have a custom capability read_cpt. Within templates and pre_get_posts I can run checks to include or exclude the CPT by ...
Drivingralle's user avatar
1 vote
1 answer
1k views

DOMAIN_CURRENT_SITE constant being regularly overridden [closed]

A few times now, our site's DOMAIN_CURRENT_SITE constant, stored inside wp-config.php has been overridden by what appears to be a reverse DNS of our sites IP address... Since we use AWS elastic IPs, ...
Numeron's user avatar
  • 111
0 votes
3 answers
2k views

How to lock Wordpress front-end with login and password?

I would like to lock whole WordPress site (all pages, all posts, whatever content I will add in the future) with login page same as for example it is made here (clear your cookies) http://facebook.com....
Marecky's user avatar
  • 133
-4 votes
1 answer
60 views

How to give access to programmer/developer to make changes, but prevent undesirable changes? [closed]

Is there any way that I can give access to my programmer to make changes but make sure they don't delete stuff it they get upset?
user3328698's user avatar
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
2 answers
3k views

How to remove dashboard access (wp-admin) for author but not disable the capabilities?

i want author role can't access wp-admin but still enable the capabilities so they can delete the posts from front end page ?
Hend Ry's user avatar
  • 29
0 votes
1 answer
42 views

Wordress admin page is fetching error You do not have sufficient permissions to access this page.

Wordress admin page is fetching error You do not have sufficient permissions to access this page. Mysite url is https://www.artvault.co.in but its admin panel url - https://www.artvault.co.in/wp-admin ...
R K Shrivastaw's user avatar
1 vote
1 answer
54 views

Assigning certain authors to specific editors

I have two editors(A and B), two authors(C and D). I want to assign author(C) to editor(A), and author(D) to editor(B). So that the posts created by author(C) only editor(A) can view and posts ...
1991wp's user avatar
  • 100
1 vote
1 answer
925 views

How to restrict CPT post's fronted view only for specific user roles?

I have a CPT named 'book' and I would like to restrict front-end view of this book, like specific role users can only view this book contents from front-end, by default anyone can see CPT posts from ...
Riyas Muhammed's user avatar
2 votes
0 answers
105 views

Wordpress Multisite prevent direct access to subdomain

Hi I have create a multisite in Wordpress and I use the main domain for the central website that projects 13 eCommerce stores with subdomains. I want my client/visitor to connect to the subdomain ...
Nick Moussi's user avatar
3 votes
1 answer
845 views

how to update current logged user username

I need to keep in sync the username and the email of my users. I don't know if there is a better way so I have tried running this code right after the user updates his profile data: global $wpdb; $...
David Guida's user avatar
21 votes
1 answer
493 views

With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?

I am aiming to restrict certain RESTUL verbs per custom post type. For example, given a Vocabulary custom post type, I would like to say: Permission Matrix +-------+---+----------+ |index | X | GET ...
Chris's user avatar
  • 408
0 votes
1 answer
3k views

Localhost install: Administrator lost administrator access; cannot access Dashboard

I have been building a WordPress-based website in my localhost (‘localhost/dzup_online/wordpress’) for a week now and I have been accessing the Dashboard several times now without fail. (Theme: ...
Reggie Santos's user avatar

1 2
3
4 5
8