Αυτό το πρόσθετο δεν έχει δοκιμασθεί με τις 3 τελευταίες κύριες εκδόσεις του WordPress. Μπορεί να μην αναπτύσσεται ή να υποστηρίζεται άλλο και να έχει προβλήματα συμβατότητας με τις πιο πρόσφατες εκδόσεις του WordPress.

Redirect multisite user to their own site (UNMAINTAINED)

Περιγραφή

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.

Εγκατάσταση

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu.
  3. That’s it.

Κριτικές

19 Μαΐου 2017 1 απάντηση
A very useful plug-in which does what it is meant for, redirect a user to the first site he has access to. I used the plug-in "remove dashboard access" to also redirect the user to the front-end.
Ανάγνωση 1 κριτικής

Συνεισφέροντες & Προγραμματιστές

“Redirect multisite user to their own site (UNMAINTAINED)” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

Το “Redirect multisite user to their own site (UNMAINTAINED)” έχει μεταφραστεί σε 1 γλώσσα. Ευχαριστούμε τους μεταφραστές για τις συνεισφορές τους.

Μεταφράστε το “Redirect multisite user to their own site (UNMAINTAINED)” στην γλώσσα σας.

Ενδιαφέρεστε για την ανάπτυξη;

Περιηγηθείτε στον κώδικα, ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών ανάπτυξης μέσω RSS .

Σύνοψη αλλαγών

1.1.2

  • This plugin is no longer in active development.

1.1.1

  • Extend README with additional clarification. No functional changes.

1.1.0

  • Revise text domain slug, action hook names and Plugin URI in plugin description.

1.0.1

  • Change plugin URL to WordPress repository version.
  • Change text domain to reflect real plugin name.

1.0.0

  • Initial WordPress SVN repository commit.

0.3.0

  • Fix logic to check whether user is logged in, and to verify that the current site ID is in the array of the user’s sites.

0.2.0

  • Fix namespace syntax
  • Amend variable naming conventions
  • Add actions to allow external code to access the functionality.

0.1.0

  • Initial commit of pre-release version.