Fix for multisite
-
Hi, I have tested the plugin for multisite, and out of the box everything is working fine. There’s one easy-to-fix issue I found.
On a multisite network it seems like my theme’s functions.php file is executed AFTER the plugin script.
So adding a filter like this won’t work:
add_filter('use_admin_password_supported_roles', function($array){ $array[80][] = 'custom-admin-role'; return $array; });A workaround that seems to work fine, is to change the last line of your plugin script to:
add_action('init', function(){ $simba_use_admin_password = new Simba_Use_Admin_Password; });so your script runs a little bit later (after my theme functions have loaded)
Please let me know if you plan to add this in the next update (otherwise I’ll fork the plugin and manage my own version)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Fix for multisite’ is closed to new replies.