Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
16 views

Can I edit domain settings if I didn't create the site?

A friend has created a WordPress site and added me as an administrator. I need to be able to add a sub-domain that points to a different website but all the instructions I can find require me to ...
0
votes
1answer
14 views

How to block access to certain WordPress pages using a snippet

I would like to block access to certain users on my WordPress site. I want only users with the "employers" user role to be allowed access to certain pages, so I tried creating the following snippet, ...
1
vote
0answers
14 views

User-specific access to folders in Wordpress site

I want to use selfhosted Wordpress site to show GIS maps to my clients. I create web maps with gqis2web plugin of QGIS program. It creates folder containing index.html and subfolders with js, css, ...
-1
votes
0answers
21 views

Limit Post Access by quantity (like the New York Times website)

I believe this is a plugin question, but I'm open to coding solutions as well. My client would like to limit post views on his website by quantity, the way the New York Times only allows a set number ...
1
vote
1answer
28 views

How to restrict access to image folder depending on whether product is purchased or not?

In WordPress I want to be able to sell sets of emoticons (png images). These sets emoticons are stored in a folder under the plugin (eg. wp-content/plugins/my-plugin/emoticons/set-1/happy.png) Some ...
0
votes
0answers
22 views

Restrict certain pages to the users with the same user role

So yes I know there are plugins such as Capability Manager Enhancer & Edit User Role which allows users with the different user roles to edit certain pages. However, I don't think they support ...
0
votes
1answer
21 views

access the plugins for each role in WordPress multisite

I have created a multi site website.   Several roles using the aam plugin have been created on the website: Special professional And... I want users who have registered on the site to create a site, ...
1
vote
0answers
26 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 ...
0
votes
1answer
18 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 ...
0
votes
0answers
9 views

Display mycred point balance using shortcode with title

I want to display mycred points with title using shortcode [mycred_total_balance] but it's not align with the title because the point goes down like this: Your Balance: 10 So I want to it ...
0
votes
0answers
21 views

Expire User after certain time

Hello i have two custom role on my website (Freelancer and Employer) and i want after 1 year of registration the user have role Freelancer expire user. This is what i want: User subscribe > After 1 ...
0
votes
0answers
13 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
36 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
33 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
99 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
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
27 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
24 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
40 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
65 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
26 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
55 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
393 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
239 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
54 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
178 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
488 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
41 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
79 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
143 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
78 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
2answers
314 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
90 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
410 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
1answer
206 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
1answer
3k 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
328 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
62 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
402 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
33 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
93 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
980 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
38 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
37 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
26 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
267 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
91 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
144 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
53 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 ...