Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [user-access]

The tag has no usage guidance.

-1
votes
0answers
9 views

Custom roles in WordPress (add_role)

I'm not much aware about using custom roles in WordPress, but recently I saw add_role() function on the codex, and I'm looking to incorporate it in one of my websites. Using custom roles, I want to ...
0
votes
0answers
11 views

How to display all images “Uploaded By” an author

Similar posts have been made on this but not the same as I what I'm looking for. Ultimately I need a gallery to be shown on a page which displays ONLY the images uploaded by the user who is logged in....
0
votes
1answer
24 views

How to restrict access to a page?

I am developing a page in WordPress. In functions.php file I have this: function feed_add_notmusa() { add_feed('mypage', 'mypage_function'); } function mypage_function() { get_template_part('/...
0
votes
1answer
25 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 ...
0
votes
1answer
22 views

How to show private pages based on a user's role?

For example. User "Mary" should be able to view to the private page "marys page" after logging in, "Tom" should be able to view the private page "toms page", etc I created new users and am using the "...
0
votes
0answers
26 views

Setting up activation keys for page access / content gating

I'm currently looking for a way of content gating for my current WP project. I am offering a psychological test, and since I have to pay licensing fees for every participant, I want to be able to sell ...
0
votes
0answers
10 views

Create secondary admin role and restrict access to specific plugin settings

I've searched here and didn't find any threads that covered my specific needs, so here goes. I want to create a secondary admin role for another website builder (my competition, to be exact) -- it's ...
0
votes
0answers
10 views

Get Users list by separate field.

Is it possible in WordPress or Buddy Press that get users list data as per specific field. Which field filled by user at the time of registration. For example in hospital management site The ...
0
votes
0answers
23 views

How to restrict access to a page from all ip addresses except some?

I want to allow access to specific page only to pc-s from internal site.There are two gateways NAT for internal network.So we would like allow access to one page for two IP address. I tried this ...
0
votes
0answers
19 views

Check what capabilitie(s) an action requires

I can check whether a user has a given capability or not with user_can() function, but how can I check what capability a certain action requires? For example, I'm using WP Job Manager plugin, this ...
1
vote
1answer
23 views

Only Allow Front End Access

I am new to wordpress and am looking at a way to only allow users access to the front-end of my site. It is a one page vlog site, but I am forcing users to register to view. Is this handled in wp-...
0
votes
1answer
18 views

How can I migrate (export and import) wordpress users without loosing their password?

I must migrate from one page to another and the customer want me to keep the password. But as their are im MD5 and salted, I don't know how to proceed. Does anyone know it? Thank you a lot for your ...
1
vote
0answers
35 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 ...
1
vote
0answers
30 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 ...
0
votes
1answer
17 views

is_user_logged_in() returns different values on different pages

On most of my site, is_user_logged_in() works perfectly. On two pages with similar custom templates set, this incorrectly returns FALSE. The user can navigate back to other pages where it works ...
1
vote
0answers
31 views

How to create user specific pages (not user role!)?

For my users on wordpress I have to manually upload research report for every user. the report is customised and different for every user. I am looking for a way to create user specific page, wherein ...
0
votes
1answer
75 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? ...
0
votes
2answers
159 views

redirect if shortcode exists

WordPress beginner here. I'm trying to check if a shortcode exists in the page being requested by the user, then if it does, redirect if the user is not signed in. function redirect_to_home() { if ...
0
votes
1answer
45 views

Redirect user to specific link after login

I am new to wordpress so I will surely need more help than others to understand your answers. So, the question is: I have this website with a login page on home. Let's supose you are a member. If you ...
-1
votes
1answer
104 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
0
votes
1answer
282 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 ...
0
votes
1answer
37 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(...
0
votes
0answers
34 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 ...
2
votes
3answers
140 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 ...
0
votes
1answer
47 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 ...
0
votes
0answers
33 views

Restrict Access to Pages for some users

I am aiming to develop a web site that has CRUD functions - however php and server management is not my forte and I was wondering if it can be done with Wordpress. I want users to be able to see data ...
0
votes
2answers
124 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 '...
1
vote
0answers
59 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 ...
2
votes
2answers
243 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: $...
0
votes
0answers
14 views

Creating user-specific RSS feeds in self-hosted wordpress

I'm a wordpress user not developer, seeking a way to create a unique RSS feed for each of my users. In this way, when users leave my subscription service, I don't have to worry about them continuing ...
0
votes
1answer
91 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.)
0
votes
0answers
45 views

How to restrict access to areas of website

We are currently moving the content of our websites (hosted on a different CMS) to WordPress instances. We have currently 300 websites we'd like to consolidate into a couple of WordPress instances. ...
0
votes
0answers
34 views

Hierarchy in user accounts

We're currently building out an MVP using Wordpress as a headless CMS (JSON Rest API). We have a requirement that allows user that have registered on the frontend to invite their colleagues to join. ...
0
votes
1answer
2k 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 ...
5
votes
1answer
276 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 ...
0
votes
1answer
53 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 ...
1
vote
3answers
309 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 ...
0
votes
0answers
32 views

Brute Force Attack Help

Today, one of my clients sites has had an unusually high number of brute force attacks, over 2000 attempts from different IP address using trying different login credentials. I had installed the ...
0
votes
0answers
75 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 ...
1
vote
3answers
650 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 ...
0
votes
1answer
35 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://....
1
vote
0answers
33 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 ...
0
votes
1answer
15 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'] == '...
1
vote
1answer
25 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?
0
votes
1answer
216 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 ...
1
vote
1answer
87 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 ...
1
vote
1answer
116 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)) ...
0
votes
1answer
52 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 ...
0
votes
1answer
307 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 ...
0
votes
0answers
547 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( ...