Questions tagged [user-access]
The user-access tag has no usage guidance.
399
questions
0
votes
1
answer
628
views
How To Remove Import/Export Option From Tools?
I want to give admin access to a freelancer. One plugin named controlled admin access done most of the part for me, expect it don't have option to select or deselect subtools.
0
votes
1
answer
1k
views
grant multiple roles access to specific admin menu item
I am writing a plugin that offers an admin menu item which only a specific, custom user role ("customrole" in the example) can access. I have implemented this as follows, and it works:
function ...
1
vote
0
answers
17
views
Limit post display to post authors and create an exception for specific pages
I'm trying to limit the display of the content to authors and need to make specific pages viewable by everyone (i.e Dashboard / Data entry ...)
Any suggestions on how to add specific rules to display ...
0
votes
0
answers
41
views
How can I limit access to uploaded media depending on the logged in user's user role?
I have a pretty straight-forward Wordpress site that uses a plugin called Subway to restrict access on the page only to logged in users. There's also the following .htaccess-rule:
RewriteCond %{...
1
vote
0
answers
62
views
User Session and Stored Cookies not get removed
I am using below code to remove the user session, cookies etc, but its not working. Please help me to resolve this issues
$userid = get_current_user_id(); //get current user id
sleep(30); //to ...
1
vote
0
answers
80
views
WordPress login problem
I have a rather strange problem with my membership created completely through code even if on WordPress.
Basically if I try to log in with a blocked URL for example:
https://example.com/example
...I ...
0
votes
1
answer
32
views
When add analytics script, wordpress user login not working
When i add Google analytics script the below one
https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-X″> (with actual container ID) , my user login not functioning well. I checked console, resolved ...
0
votes
0
answers
29
views
Blank dashboard with no access
is there any idea how may i fix this issue (in a photo). I use reset wordpress plug-in last time and then it is happen.
Regards,
2
votes
0
answers
298
views
Limit users by custom taxonomy and user roles
This is not duplicated post!
I working on the custom theme and have 2 taxonomies: bezirk and ortsgruppen.
bezirk acts like main group and ortsgruppen is the sub group under bezirk. I need to asign ...
2
votes
1
answer
997
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 ...
0
votes
0
answers
25
views
Email post to submitter
I have a client that needs a front-facing form that can create a post (custom post type), populate a bunch of custom fields (preferably ACF/ACF Pro), and also send a copy of the submitted information ...
0
votes
1
answer
48
views
I can't recover my password
Can you explain to me what the following line of code means?
if ( isset( $_COOKIE[ $rp_cookie ] ) && 0 < strpos( $_COOKIE[ $rp_cookie ], ':' ) ) {
This is because I see that this is where ...
0
votes
1
answer
528
views
How to show only specific category post by user role without plugin and restrict all other cats
I am using basic post for adding posts. 5 categories exist ( cat_A, cat_B, cat_C, cat_D, cat_E). And I have 2 custom user_role for registered visitors that is 'viewer_a' and 'viewer_b'. I need to show ...
2
votes
1
answer
18k
views
403 Forbidden - You don't have permission to access /wp-admin/admin-ajax.php on this server
When I try to make a backup of my wordpress website through plugin I recieve the following error:
"403 Forbidden - You don't have permission to access /wp-admin/admin-ajax.php on this server."
This ...
0
votes
1
answer
249
views
Restrict the list of parent pages to only those which are created by current user
I think the title of this post is quite self-describing, but I would like to restrict the list of parent pages (in the edit page form) to only those pages, which are created by logged user - the list ...
0
votes
0
answers
19
views
How to make this custom capability work? [duplicate]
I am trying to make a custom ability on my page CV people can insert and then view their CV I made a custom capability view_cv and I want for it to remove the option to view their CV.
<a class="...
0
votes
1
answer
188
views
How to create different views for different user roles?
I am creating a website where highschoolers can go do a bunch of tests to see what are their best abilities, what work would suit them etc. The tests work. I have created a registration form whit ...
0
votes
2
answers
1k
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
2
answers
1k
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
1
answer
417
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
1
answer
721
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
3
answers
96
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
0
answers
306
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
1
answer
27
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
1
answer
243
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
0
answers
116
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
1
answer
105
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 ...
1
vote
1
answer
210
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
0
answers
351
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
1
answer
106
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
1
answer
2k
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
1
answer
46
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 ...
1
vote
1
answer
1k
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
1
answer
2k
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
0
answers
37
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
1
answer
216
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-...
1
vote
2
answers
626
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
1
answer
513
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
0
answers
109
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
0
answers
430
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
0
answers
113
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
1
answer
777
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
0
answers
53
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
1
answer
102
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
0
answers
289
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 ...
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? ...
0
votes
2
answers
1k
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
1
answer
95
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
1
answer
84
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
1
answer
1k
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