• Resolved jlashomb

    (@jlashomb)


    It looks like it’s hard set to require users to be members of the site if used in a multisite setup. Is there a way to toggle it so that any logged in user can view any site as long as they are authenticated?
    Allow it to be overridden with a hook. Something like this…

    function my_forcelogin_members_only() {
      return false;
    }
    add_filter( 'v_forcelogin_members_only', 'my_forcelogin_members_only' );

    Then add the following to line 23…
    $members_only = apply_filters( 'v_forcelogin_members_only', TRUE );
    and change line 53 to …
    elseif ( $members_only && function_exists('is_multisite') && is_multisite() ) {

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jlashomb

    (@jlashomb)

    I’m new to WordPress development, but just found the github repo for this plugin. I’ll see if I can generate a version for consideration. There appears to be some issues on the repo requesting similar features.

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Is there a way to toggle it so that any logged in user can view any site as long as they are authenticated?

    Currently, if you want users to have access to multiple sites in your network, you need to add those users as members of each site.

    There appears to be some issues on the repo requesting similar features.

    Yes– and I believe the one closest to your request would be this one:
    https://github.com/kevinvess/wp-force-login/issues/46

    Thanks!

    Thread Starter jlashomb

    (@jlashomb)

    Thanks for the quick reply. I ended up forking your plugin to fit our needs and submitted a pull-request with a simple expansion incase you wanted to add it in. It’s a very minor change that allows it to be disabled via a filter in a mu-plugin, and I extended the readme.txt to explain the usage. Feel free to reject it if it’s not a good fit.

    https://github.com/kevinvess/wp-force-login/pull/52

    Plugin Author Kevin Vess

    (@kevinvess)

    Excellent, I’ll check it out!

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks for using Force Login!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multisite Not Authorized’ is closed to new replies.