Questions tagged [content-restriction]
The content-restriction tag has no summary.
126 questions
0 votes
1 answer
113 views
remove pagination from a single blog entry
I am using the Pipdig theme Opulence, and am currently using a Static Front Page for a custom homepage, and a separate Static Posts page, so that I can decide where my viewers go. I have also made it ...
1 vote
1 answer
143 views
How to restrict content on a subdomain to users that registers on main site?
I would like to create the following type of set up and wonder if anyone knows if it is possible on a subdomain and how it can be done. I have a main site, "example.com", and a subdomain, &...
1 vote
2 answers
202 views
Content Restriction but allow public REST API
My Question, is it possible to restrict the content from a post (shwo e.g. teaser/excerpt only) but still let access the content fully by the REST Api interface? My scenario is that i would like to ...
0 votes
1 answer
49 views
Restrict page to members only does not work for page ID, slug or page title
I was wondering why (and how to) restricting pages by the following criteria does not work. I wanted to restrict the contact page due to spam. The code is being added and activated on front-end using ...
0 votes
1 answer
197 views
Restricting Image Upload Sizes using 'wp_handle_upload_prefilter' - Stuck media progress bar when Featured Image?
I have grabbed this function and adjusted it to my needs. add_filter( 'wp_handle_upload_prefilter', 'check_image_dimensions_during_upload' ); function check_image_dimensions_during_upload( $file ){ ...
2 votes
0 answers
65 views
How to protect content from public users and limit access to certain roles in WordPress 2023?
There are hundreds of content protection plugins and role managers, however in my current case I need a custom solution. The customer wants that only "logged in users" are to be able to read ...
2 votes
1 answer
773 views
Restrict Image Sizes and Dimensions when Uploading via the WP Mobile App
I restrict image uploads by file size and dimensions on my client's websites using 'wp_handle_upload_prefilter'. However, it appears this function is not called when using the WordPress.com mobile app....
0 votes
0 answers
54 views
Multisite Login Access Restrictions
I am building a multisite where users can sign up to create a subsite about there business. I would like to have them be able to login to the backend and edit there subsite but restrict them from ...
0 votes
0 answers
53 views
Disable Page if user not logged in
I am using the zoom plugin for creating workshops, and I want to make the nonusers cant access the workshops pages until they log in. the link for each workshop will be different ex (https://******....
0 votes
1 answer
384 views
Show/hide posts and categories based on user meta
I've added additional input fields to the user profiles with Advanced Custom Fields (for example "type of customer"). How is it possible to hide posts and categories for users with specific ...
0 votes
1 answer
46 views
Limit users to specific uploads
I'd like to restrict users to only see/manage only their own uploads. However, there's a requirement to allow one than one account to manage these uploads. It cannot just be the person who originally ...
0 votes
1 answer
960 views
Hide front-end from every logged out user and redirect them to the default login page
I want to hide the front-end from every visitor/logged out user. To see the front-end, every user must have been registered and logged in. Any visitor that's logged out should be redirected to the ...
0 votes
0 answers
81 views
URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
I have a site that needs to only allow people who are logged in and have at least one of 3 possible roles to have access to the pages of the site. I'm not new to programming, but am new to both php ...
1 vote
0 answers
43 views
Protect sequence of pages with same password for each of two groups of users
I'm currently creating a home page (learning environment) with wordpress. It should serve for an experimental study with two conditions. Based on the condition a participant will be assigned to, he or ...
1 vote
1 answer
1k views
Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx - not only Apache - solution
Talking about this well known solution: Github Original discussion I'm looking for a straightforward way working also on a Nginx installed WP and not only on Apache ones. Is there any other code-based ...