Skip to content

Instantly share code, notes, and snippets.

@garvs
Created July 12, 2018 10:08
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 garvs/0a6c70c1b947045da6934a1d45b1b76a to your computer and use it in GitHub Desktop.
Save garvs/0a6c70c1b947045da6934a1d45b1b76a to your computer and use it in GitHub Desktop.
User Role Editor WordPress plugin - suppress admin protection
<?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