Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-user-manager/d99ae6ee2406f1b06e8ab8165b95345e to your computer and use it in GitHub Desktop.
Save wp-user-manager/d99ae6ee2406f1b06e8ab8165b95345e to your computer and use it in GitHub Desktop.
WP User Manager - Content Restriction - change the restriction message for all content unless they have a message specified
<?php
add_filter( 'wpumcr_global_restriction_message', 'my_wpum_global_restriction_message' );
function my_wpum_global_restriction_message( $restricted_global_message ) {
return 'This is message show for all restricted content unless the content has a specific restriction message.';
}
@wp-user-manager
Copy link
Author

Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment