Questions tagged [user-access]

The tag has no usage guidance.

0
votes
1answer
12 views

Restrict file access based on user roles [on hold]

Problem Statement: There are three custom roles, HR,Employee and Marketing. User with role as HR and Marketing can upload and view all files. User with role as Employee should only be able to access ...
0
votes
2answers
34 views

Unique one time use URL

I’ve been searching for solution to my problem but posts already made are not fulfilling the answer to me, or I'm just not qualified enough to work this out. Here is what I need: I’ve got a simple ...
0
votes
1answer
150 views

ERROR message: “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

I have this problem, I've completely deleted all plugins, themes and changed php to 7.1. Nothing is helping. I have the same message: "The site is experiencing technical difficulties. Please check ...
-1
votes
1answer
16 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 ...
-1
votes
1answer
28 views

How to block external download link access if visitor not referred from WP?

How to block link access (on a custom script installed server) if visitor not referred from our wordpress site? I mean we want to block access to links inside of our wordpress posts and make them ...
0
votes
3answers
33 views

Hide Wordpress “wp-admin” dashboard to User IDS

Is there a way to remove & redirect any users of a site from accessing https://www.example.com/wp-admin/ Unless there id is one, i have seen some examples floating around the ask if admin-ajax ...
0
votes
0answers
35 views

Doesn’t call user information to include “wp-load.php” in an external php file

Doesn't call user information to include "wp-load.php" in an external php file. <?php require_once( dirname( dirname( __ FILE __ ) ) . '/wp-load.php' ); global $wpdb, $user_ID; echo $user_ID; // ...
0
votes
1answer
19 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
17 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
17 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
vote
1answer
29 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
24 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
25 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
29 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
29 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
15 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
68 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
35 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
235 views

wordpress editor role remove all but 'menus' in appearance menu

I'm trying to remove access to everything in the appearance menu in WP admin for the role editor. Or at the least, just remove access to themes and plugins. I have found how to remove the whole ...
0
votes
1answer
187 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
28 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 ...
2
votes
1answer
41 views

How to block access to blog-page for users not logged in?

My blogpage [is_home()] is located at /blog. My static page [is_frontpage()] is not the blogpage and located to /about-us. For users not logged in, the startpage is the static page. For users logged ...
1
vote
0answers
42 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
83 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 ...
1
vote
0answers
38 views

How to block access to files without modifying .htaccess or ngnix config? [closed]

I'm trying to prevent access to readme.txt files on a WP site. Normally, this would be easy by just modifying the .htaccess file or the ngnix configuration. However, the host runs ngnix, which ...
0
votes
1answer
223 views

How do I restrict a second admin certain access?

Hi I was wondering if there was a way to restrict access to certain plugins for a certain admin. For example. I want to have a second admin on my site, I want them to be able to access all plugins ...
1
vote
0answers
41 views

WooCommerce plugin won't let me access settings

I downloaded WooCommerce and activated it normally. But it doesn't show up in my Wordpress sidebar to access the settings. When I do it from the plugins page it directs to a page that tells me that I ...
0
votes
1answer
30 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
86 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
532 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
268 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
55 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
27 views

New folder and file permissions are not correct

I have read through a bunch of sites, but I could only find the right permission to set to existing files and folders, but I could not find anything related to the new files and folders to be created. ...
-1
votes
1answer
220 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
557 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
44 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
2answers
132 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 ...
0
votes
0answers
84 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
145 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
105 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
339 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
110 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 ...
3
votes
2answers
462 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
254 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
22 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 ...
0
votes
5answers
4k 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....