Created
July 12, 2018 10:08
-
-
Save garvs/0a6c70c1b947045da6934a1d45b1b76a to your computer and use it in GitHub Desktop.
User Role Editor WordPress plugin - suppress admin protection
This file contains 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('ure_supress_administrators_protection', 'switch_off_ure_administrators_protection', 10, 1); | |
function switch_off_ure_administrators_protection($supress_protection) { | |
$supress_protection = true; | |
return $supress_protection; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment