WPMS Site Maintenance Mode
Allow Site Admins Access (3 posts)

  1. ChrisCree
    Posted 3 years ago #

    Heya Joshua!

    You've got a solid plugin here & I really appreciate what you've done with it. I've been making a minor change to it when I upgrade since 1.0 to let my site admins see their sites while they are in maintenance mode. All I'm doing is changing line 122 from

    if (is_super_admin()) return;


    if (is_super_admin()) || current_user_can('manage_options')) return;

    Not sure if that is something you'd want in the plugin or not, but I thought I'd pass it along if it'll help.


  2. ChrisCree
    Posted 3 years ago #

    It would totally help if I matched up my parenthesis. My bad. Correct code is:
    if ( (is_super_admin()) || current_user_can('manage_options') ) return;

  3. Joshua Parker
    Plugin Author

    Posted 3 years ago #

    @ChrisCree, thanks for the contribution, but I have a question as to where this function fits in the scheme of things, since this is somewhat built in already. If a super admin is doing maintenance and doesn't want any other user to access the network, then he/she will shut the whole site down. If the super admin is only doing maintenance on the main site, then he/she will allow access and login access to subsites.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPMS Site Maintenance Mode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.