Redirect multisite user to their own site (UNMAINTAINED)

Redirect multisite user to their own site (UNMAINTAINED) Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,061 downloads
Redirect multisite user to their own site (UNMAINTAINED) Icon

Try plugin: Redirect multisite user to their own site (UNMAINTAINED)

We'll create fresh WordPress site with Redirect multisite user to their own site (UNMAINTAINED) installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Redirect multisite user to their own site (UNMAINTAINED)

Redirect a multisite user to their own site.

1


0


0


0


0

updated: 2 years ago
since: 8 years ago

Description

THIS PLUGIN IS NO LONGER MAINTAINED.

If the current user in a multisite environment accesses a subsite to which access has not been granted, then redirect the user back to their own site. If the user has been granted access to more than one site in the Multisite installation, then no redirect can occur. (Because there is no way of finding out which one is “correct”.)

Information for developers

There are three action hooks available to developers. You can use them, for example, to write a log file or notify an email address when an action is carried out.

  • redirect-multisite-user-to-their-own-site/no-sites fires when the user is logged in but does not have specific access to any sites in the current Multisite installation. Receives the values $current_user (WordPress User object) and $current_site_id (integer) as attributes.
  • redirect-multisite-user-to-their-own-site/redirecting fires immediately before the user is redirected to the appropriate site. Receives the values $current_user (WordPress User object), $current_site_id (integer) and $user_target_site->siteurl (the URL to which the user will be redirected) as attributes.
  • redirect-multisite-user-to-their-own-site/not-allowed fires when the user has authorized access to more than one site in the installation, and can therefore not be redirected. Receives the values $current_user (WordPress User object), $current_site_id (integer) and $user_sites (array) as attributes.

This plugin requires PHP 5.3 or newer because it uses PHP namespaces.