Thank you for the response. My apologies, but is it possible to be a little more specific? I read through the “Must Use” plugin link you provided. Do I need to make the Role Editor plugin a must use plugin, or do I just need to include the filter code you provided in the mu-plugins folder? Would that code go in the mu-autoloader.php?
We have no must-use plugins in our environment so I created the mu-autoloader.php file I used the suggested code from the doc you linked:
<?php
/**
* This file is for loading all mu-plugins within subfolders
* where the PHP file name is exactly like the directory name + .php.
*
* Example: /mu-tools/mu-tools.php
*/
$dirs = glob(dirname(__FILE__) . '/*' , GLOB_ONLYDIR);
foreach($dirs as $dir) {
if(file_exists($dir . DIRECTORY_SEPARATOR . basename($dir) . ".php")) {
require($dir . DIRECTORY_SEPARATOR . basename($dir) . ".php");
}
}
Adding that code alone seems to have no impact on the site, however, if I include the filter code you provided:
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;
}
This resulted in a 500 error for all blog sites.
This is quite confusing and I’m really not sure how I’m supposed to proceed. Could you please outline what steps I need to take? Any advice would be helpful.
Thanks.