Created
February 5, 2023 07:51
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).