• Trusted by 2,250,000+ users
  • 30-Day money back guarantee
  • 15+ years of experience
  • Woocommece, Elementor, Gutenberg, 6+

Redirect multisite user to their own site (UNMAINTAINED)

by Mark Howells-Mead

1 Ratings

  • 5.0

Active Installations

10+

Last Update

2 years

Quality

D

Plugin Description

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.

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Regular Price

Free download

Key Features

  • You will be redirected to the retailer

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached