PHPackages                             digitalerase/wp-remote-users-sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. digitalerase/wp-remote-users-sync

ActiveWordpress-plugin

digitalerase/wp-remote-users-sync
=================================

Synchronise users automatically and securely between multiple wordpress sites.

2.1.3.2(8mo ago)057GPL-3.0-or-laterPHP

Since Nov 12Pushed 8mo agoCompare

[ Source](https://github.com/digitalerase/wp-remote-users-sync)[ Packagist](https://packagist.org/packages/digitalerase/wp-remote-users-sync)[ Docs](https://github.com/digitalerase/wp-remote-users-sync)[ RSS](/packages/digitalerase-wp-remote-users-sync/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

WP Remote Users Sync - Synchronise WordPress Users across Multiple Sites
========================================================================

[](#wp-remote-users-sync---synchronise-wordpress-users-across-multiple-sites)

- [General Description](#user-content-general-description)
    - [Overview](#user-content-overview)
- [Adding User Actions](#user-content-adding-user-actions)
- [Hooks - actions &amp; filters](#user-content-hooks---actions--filters)
    - [Actions](#user-content-actions)
    - [Filters](#user-content-filters)

General Description
-------------------

[](#general-description)

If you run multiple websites and want to keep users separated, but synchronise them automatically and securely for specific user operations, then WP Remote Users Sync is the plugin to use.

### Overview

[](#overview)

This plugin adds the following major features to WordPress:

- **WP Remote Users Sync admin page:** a settings page under "Settings &gt; WP Remote Users Sync" to manage remote sites, security settings, import/export users, and view activity logs.
- **Remote Sites:** manage an unlimited amount of connected sites with configuration for incoming and outgoing User Actions (Login, Logout, Create, Update, Delete, Password, Role and Metadata).
- **Security:** WP Remote Users Sync is the **only** plugin available allowing users to be synchronised with true layers of security in place. All communications are OpenSSL AES-256-CBC encrypted, HMAC SHA256 signed, token-validated and IP-validated.
- **Import and Export Users:** connected websites' existing user base can be synchronised manually first thanks to the provided import/export tool.
- **Activity Logs:** when enabled, all communications between connected sites is logged for admin review and troubleshooting.
- **Synchronise all user data:** compatible out of the box with WooCommerce, Ultimate Membership, Theme My Login, Gravity Forms, and all user-related plugins as long as they rely on WordPress user metadata and manipulate users with the WordPress user functions.
- **Customizable:** developers can add their own User Actions using action and filter hooks, and more.
- **Unlimited websites, unlimited features:** there are no restrictions in the number of websites to connect together, and no premium version feature restrictions shenanigans - WP Remote Users Sync is fully-featured right out of the box.

---

Adding User Actions
-------------------

[](#adding-user-actions)

Developers can extend the plugin and add their own custom User Actions by using a few filter and action hooks as well as a class inheriting `Wprus_Api_Abstract`.
Below is a simple example of implementation of an `Example` action calling the `example` API endpoint, firing 1 synchronous request and 1 asynchronous request whenever the `wp` action hook is called by WordPress, and logs the received data (not to be used in production environment!).

### Implementing filter and actions hooks and including a custom User Action API class - example

[](#implementing-filter-and-actions-hooks-and-including-a-custom-user-action-api-class---example)

In this example, we are first creating a simple plugin to implement the action and filter hooks, and include the User Action API class.

```
