# How to change the restriction message for all content

URL: https://wpusermanager.com/article/330-how-to-change-the-restriction-message-for-all-content/
Last updated: 2023-02-05

If you are restricting a large amount of content but you don't want to [restrict all content in a specific post type](https://wpusermanager.com/article/331-how-to-restrict-all-content-in-specific-post-types), then it can be easier to set the message, which is displayed to a user when the content is restricted, in one place instead of editing each post.

You can change the message using this code:

https://gist.github.com/wp-user-manager/d99ae6ee2406f1b06e8ab8165b95345e
