Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Want it done for you?

Let the Duplicator experts migrate your WordPress site for you — quick, safe, and hassle-free.

Get Migration Help

Activity Log and WordPress Multisite


Activity Log is fully compatible with WordPress Multisite networks. Activate it network-wide to run it on every site with a single license, or activate it on individual sites for more granular control.

This guide covers how Activity Log works on a WordPress Multisite network, including activation, event recording, and site-specific filtering.

Activating on a Multisite Network

Activity Log can be activated in two ways on a Multisite installation:

Network Activation

Go to Network Admin › Plugins and activate Activity Log network-wide. This automatically activates the plugin on every site in the network, and each site creates its own log database table the first time the plugin runs there. New sites added to the network get the plugin activated automatically. When network-activated, the plugin’s admin menu and Settings move to Network Admin instead of appearing under each individual site.

Only super admins can reach Activity Log when it is network-activated. That covers the Activity Log and Settings pages in Network Admin, the license, the export and purge tools, and the Activity Log dashboard widget, which shows on each site’s dashboard for super admins only. Site administrators, including a main site administrator who is not a super admin, can’t open any of them.

License activation is handled at the network level when Activity Log is network-activated, tied to the network’s main URL rather than each individual site, and the license’s site count covers every site on the network.

Per-Site Activation

Activate the plugin only on specific sites from each site’s own Plugins screen. A super admin can do this on any site. Site administrators can do it only if the Plugins menu is enabled for them under Network Admin › Settings › Network Settings, in the Enable administration menus option. This gives more granular control over which sites are monitored, and keeps the plugin’s menu and Settings under that site’s own admin rather than Network Admin.

How Events Are Recorded

Activity Log writes each event to a log table that belongs to the site where the change happened. Each table uses that site’s own database table prefix, so every site keeps its own log, and each event also stores the ID of its site. The table is created when the plugin first runs on that site.

When a plugin is activated network-wide, the event log records a network_wide: true flag in that plugin activation event’s metadata, so you can distinguish network-wide plugin changes from per-site ones.

Filtering by Site in the Admin

With per-site activation, the log in a site’s admin area (Activity Log › Activity Log) shows only that site’s events, from that site’s own log table.

Activity Log does not merge every site’s events into a single combined view, and its admin screens have no site filter. When the plugin is network-activated, no site has its own Activity Log page. The page in Network Admin reads the log table of the network’s main site, so it shows that site’s events. To review the events of any other site, export them with WP-CLI, as shown in the next section. With per-site activation, check each site’s own Activity Log page instead.

Filtering by Site in WP-CLI

On a Multisite network, use WP-CLI’s own –url flag to run the export for a specific site. You can add the plugin’s –site_id flag as a filter with the same site’s ID:

wp duplicator-activity-log export --url=https://site2.example.com --site_id=2

–url

Tells WP-CLI which site’s context to run in, since each site’s events live in that site’s own table. Replace the URL and site ID with the target site’s own values. To find a site’s blog ID, run:

wp site list --fields=blog_id,url

–site_id

Filters the export by site ID. Use the ID of the site you give in –url. A different ID gives an empty export. You can combine --site_id with any other export flag. For example, to export all High severity events from site 3:

wp duplicator-activity-log export --url=https://site3.example.com --site_id=3 --severity=high --format=csv > site3-high.csv

Per-Site vs Network-Wide Settings

Activity Log settings (General, Events, Notifications) are stored per site. Each site in the network can have its own:

  • Log retention period
  • Enabled or disabled event categories
  • Notification recipients and triggers
  • Logging method (sync vs async)

There is no global settings override at the network level. With per-site activation, the administrator of each site manages that site’s own Activity Log configuration. With network activation, only super admins can open Settings, and the page in Network Admin saves to the main site only, so the other sites keep their default settings. Since retention is configured per site, the daily cleanup job also runs and prunes old entries per site rather than network-wide. License activation is the one exception, handled at the network level when the plugin is network-activated, as covered above.

That’s it! With activation, event recording, and settings scoped correctly, Activity Log tracks changes cleanly across every site on the network.

For a full list of what gets tracked, see What Does the Activity Log Track?. To adjust retention, notifications, or logging method on a given site, see Configuring Activity Log Settings.


Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →