Questions tagged [content-restriction]

The tag has no usage guidance.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
42 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 ...
Blackbam's user avatar
  • 535
2 votes
1 answer
317 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....
Jim S.'s user avatar
  • 21
2 votes
0 answers
239 views

Limit REST API output to current logged in user that is also author of the content

https://developer.wordpress.org/rest-api/using-the-rest-api/frequently-asked-questions/#require-authentication-for-all-requests This requires authentication for all reque​sts. add_filter( '...
lowtechsun's user avatar
1 vote
0 answers
25 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 ...
Nadine M.'s user avatar
1 vote
1 answer
424 views

How can I restrict image upload dimensions for non-admin WordPress users?

I want to restrict the dimensions of images uploaded by anyone who is not an administrator in WordPress to a specific size. I also want to return a specific error feedback when the image uploaded ...
Patrick Aziken's user avatar
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 ...
moab's user avatar
  • 11
1 vote
0 answers
63 views

Restrict certain character combinations in username during registration

I am trying to restrict a certain combination of characters in a user name while they register. I have restricted user names to numeric characters only, but now I am not getting a way out to restrict ...
Pawan Kumar's user avatar
1 vote
0 answers
375 views

How to show post content before read more tag (excerpt) for password protected posts?

WordPress password protected posts or pages show by default the text "There is no excerpt because this is a protected post.", instead of the post excerpt. The corresponding code is in wp-includes/...
Inge's user avatar
  • 11
1 vote
1 answer
65 views

Are exclusive taxonomy terms possible?

I'm creating a site that requires users' content to be exclusive to the user. Ideally I would like this to extend to taxonomy terms. Example: I have a taxonomy "Clients" UserA creates the term "My ...
EpF's user avatar
  • 121
0 votes
1 answer
21 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 ...
Johnny Bravo's user avatar
0 votes
0 answers
62 views

Hide custom posts from certain taxonomy in rest api

I have a custom post type called books, the books are available here: /wp-json/wp/v2/books I have a custom taxonomy books-category and one of the category is general. How can I hide all posts except ...
Rain Man's user avatar
  • 154
0 votes
0 answers
31 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 ...
Daemon's user avatar
  • 1
0 votes
0 answers
37 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://******....
KDot's user avatar
  • 15
0 votes
1 answer
257 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 ...
Mario's user avatar
  • 101
0 votes
1 answer
23 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 ...
BobsBurgers2356's user avatar
0 votes
0 answers
49 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 ...
A.Karwowski's user avatar
0 votes
1 answer
57 views

How can i restrict a page to certain user roles?

I would like to know how can i restrict a certain page to be shown only to specific user roles & also show an error message that the user is not allowed to view this page if the user role is ...
Hayder Allawi's user avatar
0 votes
2 answers
68 views

After reading 3 story by user ask for subscription popup

I am new in word-press development, i want to make a news website in which user read two story then ask him to pay(Subscription Plan), when he registered he can read unlimited
Pankaj Yadav's user avatar
0 votes
0 answers
33 views

Valid Wordpress html elements

I'm working a plug-in on the admin side of it. I would like to show a html listbox element on the form. But no matter what I try, it will only show 1 entry. It is scroll-able, which I want when it ...
Bud's user avatar
  • 33
0 votes
0 answers
850 views

How to block access to a folder inside of wp-content for non logged in users?

I have a custom folder inside of wp-content where I'm uploading media. I need to block direct access to this folder unless the user is logged in. Is there any way to do this? I've searched but have ...
Lz430's user avatar
  • 137
0 votes
2 answers
41 views

Hide top admin panel for non admin and non editors

So i came to three posible solutions to this question and can't decide which is better. What is your opinion? First solution: if ( ( in_array('administrator', userdata('role')) || in_array('editor', ...
DoktorD96's user avatar
0 votes
1 answer
205 views

Wordpress Front-End user restricted taxonomies

Hi I need some info on how to achieve the below senario. I have a post type called "PRO". I have a custom taxonomy for above post type called "Pro Categories". Admin will create users in the backend ...
user124296's user avatar
0 votes
1 answer
24 views

Segregating content in a blog for 2 different readers

I'd like to have a blog that covers two topics, mathematics and interactive fiction. However, because the mathematics is more serious, for my job, I'd like to hide the interactive fiction when the ...
Brian Rushton's user avatar
0 votes
1 answer
3k views

Restricted images only for logged user. (hidden url)

Im looking for way to create page where only logged in user can see images, but images cant be index by browser, cant be accessed by not logged in user. Simply, if logged in user copy image link, ...
Isu's user avatar
  • 397
0 votes
1 answer
111 views

Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on "location" variable)

Sorry if the title of this is not clear. Here's my scenario. I want to create multiple sites (will use 3 as example) with the following content filtering. www.main.com - serves all content www.usa....
RealSollyM's user avatar
0 votes
1 answer
239 views

Restrict content even to specific user

I am developing a membership site that will allow members to access old issues of a magazine produced by a charity. I have it working up until a point, I can restrict access to each download to the '...
Phil Dumelow's user avatar
0 votes
0 answers
753 views

Restrict access to custom post type and filter from every query

I created a custom post type topic which is just for internal use. I managed to assign the correct capabilities so that users of certain roles can edit/publish/delete posts. Now I want to redirect ...
luke's user avatar
  • 533
0 votes
1 answer
68 views

Member Site - Always Sends Me Back To Login

I set up a simple site about a year ago for a client that uses a modified Twenty Fourteen theme to run a members only site. You can see the site here. She wanted the site to be completely restricted ...
fmbns's user avatar
  • 1
0 votes
1 answer
933 views

Allow users to only CREATE one single (custom) post

I created a custom post type with taxonomy and now want to allow users (of a specific user group) to post only one single post in a specific category. If the user has already posted a post, he can ...
Jobo21's user avatar
  • 1
0 votes
0 answers
88 views

Assign specific editor with custom user meta "A" to all authors with custom user meta "A" and exclude all other author access

I am looking to do the following: Logic/layout/cores: All contributors select a school in a custom user profile meta field All contributors also select a club in a custom user profile meta field ...
Caroline's user avatar
0 votes
1 answer
160 views

How to give members access to their own protected page?

I'd like to give each member access to their own personal page that only I'll be able to edit. Each member will have their own personal page with private info. Do you have any suggestions on how to ...
Cris's user avatar
  • 101
0 votes
1 answer
108 views

Restrict access to specific content

I need to create several users in WP and to restrict their permissions to specific contents. For example: I create a custom content type called "Cook Profile" with several text fields and the ...
Simone Conti's user avatar
0 votes
0 answers
1k views

Restrict download files from not generated Urls

I use a plugin in WPMU that encrypt all downloads urls in wp-content/uploads/ : The downloads can still be accessed if users know the path to the file: e.g. www.domain.com/wp-content/uploads/2013/02/...
Ghinnersmee's user avatar
0 votes
1 answer
198 views

Avoid too long words in a post title, post content or comment but only if its not a url

I want to prevent users from posting things like "aaaadfgdfgsdfgdaaaadsfgsdfgaaasdfgdfaaadfgsdfgaaaaaaaajahkjhkahkkjkjhaa..." which would not only be annoying but would certainly break the content div ...
Bachir Messaouri's user avatar
0 votes
1 answer
110 views

Basic File/Post restriction plugin

I am looking for a plugin that allows me to restrict access for a individual post/page to a specific role or individual. It also needs to restrict files attached to that post. I have tried several ...
kidbrax's user avatar
  • 101
-1 votes
1 answer
41 views

I want to restrict a page for subscriber and contributor

Well, I want to restrict a page for subscribers and contributers and want to redirect them to another page. But how can I do that?
Walid Ahmed Samy's user avatar