EZ Page Sync

Push page edits from a staging WordPress instance to production with cryptographic validation, automatic media sideloading, and database rollback checkpoints.

  • v1.2.6
  • PHP 8.2+
  • WordPress 7.0+
  • MySQL 5.7+
  • MariaDB 10.3+

Overview

EZ Page Sync is a WordPress plugin that pushes the pages you choose from staging to production. It carries a page's content, meta, media, and layout data, remaps links and IDs to production, and leaves the rest of the production database alone. No full export, no search-and-replace, and no overwritten orders, comments, or form entries.

HMAC Cryptographic Security

Every request is signed with HMAC-SHA256. One-time nonces (10-minute TTL) and a ±5-minute timestamp window stop replays, the receiver allows 60 syncs per hour per IP, and HTTP is rejected. The shared key is stored encrypted (AES-256-GCM).

Automatic Rollback Snapshots

Before applying updates, the receiver snapshots the existing target page. If a step fails before the sync commits, Auto Rollback (on by default) restores it. A failure after the page is saved comes back as a warning and never rolls back saved content.

Key Features

Full & Content-Only Sync

Full Sync sends the post plus everything your tier covers (meta, ACF, media, and layouts on Premium). "Content Only" sends just the post body, title, and slug.

Dry Run Mode

Every sync opens a preview first, showing match confidence, field changes, and warnings. Dry Run Mode sends the signed payload through the receiver's checks without writing anything to the database.

URL Rewriting

Rewrites references to the staging URL found inside your HTML blocks, custom fields, and layout configurations to use the production URL on arrival.

Media Sideloading

Premium. Staging first asks production which featured images and inline attachments it already has, then sends only the missing files inside the signed payload and sideloads them into the production library. Run Image Format Converter on the receiver to convert those sideloaded images to WebP/AVIF the moment they land.

ACF & Elementor Remapping

Premium. Syncs Advanced Custom Fields (ACF) values and Elementor layouts (_elementor_data), including Global Widget and Template references, remapping media and post IDs to their production matches.

Cache Clearing

Automatically clears cached instances of modified pages for common setups, supporting WP Rocket, LiteSpeed Cache, W3 Total Cache, and WP Super Cache.

Discard Edits

Every successful sync stashes a snapshot on staging. "Discard Edits" restores a page to its last-synced state in one click, and the admin menu badge counts pages with unsynced edits. Included on the Free tier.

Locally Modified Detection

Flags a page as "Locally Modified" when its production copy was edited or restored directly, using a read-only, HMAC-signed divergence check from staging.

Trash on Production

Trashing a linked page on staging queues it. From Sync Pages, a confirm dialog lists each production page before anything is sent, and production moves it to its own trash, with Undo. One page per job is free; more needs Premium.

Overwrite Protection

A sync onto a production page that was never synced from staging stops and asks you to confirm with Force Sync. Pages re-linked after a production refresh get the same check when their slug doesn't match. Force Sync is free on every tier.

How It Works

The staging server compiles and signs the payload; production validates it, snapshots the target page, and applies the update.

Outbound Dispatch Pipeline (Sender)

Pipeline A
  1. Action Trigger

    An editor clicks "Sync" on the Sync Pages dashboard, the Pages/Posts list, or the page metabox. A preview diff opens first; nothing is written until they confirm.

  2. Payload Construction

    Sender::build_payload()collects the page, custom post meta, taxonomies, ACF fields, and base64 copies of only the media production is missing.

  3. HMAC Signature

    The compiled JSON is signed using SHA-256 HMAC using the API secret key, adding a one-time nonce and timestamp.

  4. REST Request

    The package is sent over HTTPS to the production receiver's registered endpoint via wp_remote_post().

Inbound Processing Pipeline (Receiver)

Pipeline B
  1. Security Verification

    Receiver::verify_request()performs whitelisting checks, verifies rate limits, and validates the HMAC signature.

  2. Match & Snapshot

    The receiver matches the staging page to its production copy. If it already exists, Rollback::create_snapshot()saves its current state as a JSON snapshot inwp_options.

  3. Application & Sideloading

    The post data is updated. Base64 media data is written to disk, re-indexed, and local URLs inside the content are remapped.

  4. Purge & Response

    Page caches are cleared, a success code is returned to the sender, and the sync event is logged in the custom logs table.

Sync Architecture

How the sender and receiver coordinate sync actions over the REST API.

staging (Sender)EzPageSync\Sender
  • └─ build_payload()
  • └─ sign (HMAC-SHA256)
  • └─ wp_remote_post() ──►
production (Receiver)EzPageSync\Receiver
  • └─ receive_sync()
  • ├─ verify_request()
  • ├─ validate_payload_schema() ← EzPageSync\Validator
  • ├─ find_or_create_production_post()
  • ├─ create_snapshot() ← EzPageSync\Rollback
  • ├─ apply_post_update()
  • ├─ sync_post_meta()
  • ├─ sync_yoast_meta()
  • ├─ sync_media() ← EzPageSync\Media_Sync
  • ├─ sync_acf_fields()
  • ├─ sync_taxonomies()
  • └─ log_sync_success() ← EzPageSync\Logger

Technical Component Breakdown

File/Class ComponentRole & Functionality
EzPageSync\SenderHandles outbound sync. Queries metadata, maps dependencies, compiles JSON payloads, calculates HMAC signatures, and manages the admin metabox.
EzPageSync\ReceiverHandles incoming payloads. Validates formatting, resolves post matches on production, maps media IDs, and writes changes to the database.
EzPageSync\AuthHandles HMAC validation, tracks used nonces to block replays, validates timestamp bounds, checks whitelisted IPs, manages rate limiting, and encrypts the stored secret key.
EzPageSync\Media_SyncHandles attachments on the receiver. Answers the media preflight, reuses files production already has, sideloads the rest into the media library, and rewrites URLs in content and meta.
EzPageSync\RollbackTracks checkpoints. Saves the post and its meta as a JSON snapshot in wp_options before sync (5 per page), expires old snapshots, and handles restoration.
EzPageSync\LoggerManages the custom wp_ez_ps_logs table. Logs events and handles automated pruning based on the configured log limits. Also writes the optional file-based debug log.
EzPageSync\Trash_SyncQueues staging trashes, sends confirmed trash jobs to production, and handles Undo and job status.
EzPageSync\Options_SyncBuilds, previews, and applies ACF Options page payloads (Premium).

Free vs Premium Feature Matrix

The Free version supports basic content sync for one destination; Premium adds custom post types, page builders, and media sideloading.

FeatureFree TierPremium Tier
Sync Destinations1 SiteUnlimited (Multi-destinations & Relay Chains)
Plugin RoleSender OR Receiver (Fixed)Both (Multi-role simultaneously)
Eligible Post Typespage, postAny registered Custom Post Type (CPT)
Metadata & Custom Fields—Included (custom meta, ACF, Yoast SEO, Astra page meta & display rules)
Taxonomies—Included (all registered taxonomies)
Page-Builder Support—Included (Elementor layout, global widgets & templates)
Media Handling—Included (Featured image & inline body media)
ACF Options Pages—Included (Site-wide ACF Options page values)
Bulk SyncOne page at a time (including one trash per job)Included (bulk sync & bulk trash on production)
Snapshots & Auto RollbackIncluded (kept 30 days)Included (kept 90 days)
Rollback Manager—Included (Full snapshot history and restore controls)
Sync LogNewest 50 entriesConfigurable retention & CSV export
Access Controls—Included (edit IP whitelist, restrict settings to a role or user)

Download EZ Page Sync

Both tiers install as a standard WordPress plugin zip — no WordPress.org account required.

Free Tier

Single destination. Syncs standard pages and posts. HMAC security, preview and dry run, connection test, auto rollback, and Discard Edits included. No time limit.

Premium Tier

Unlimited destinations, custom post types, ACF, Elementor, media sideloading, ACF Options sync, bulk sync, and the Rollback Manager. Delivered via Freemius.

Need help deciding which tier fits your setup? Get in touch — happy to talk through it before you test.

Configuration Reference

Setting KeyRole ScopeDefaultDescription
ez_ps_enabled_rolesBoth['sender']Role assignment: 'sender' (staging), 'receiver' (production), or both (Premium). Falls back to the legacy ez_ps_plugin_role option.
ez_ps_api_secret_keyBoth—Shared API Secret Key for HMAC signatures. Stored encrypted in DB.
ez_ps_allowed_sender_ipsReceiver''Comma-separated sender IP addresses or CIDR blocks. Empty matches all. Editing it is Premium; a saved list stays enforced if the license lapses.
ez_ps_sync_post_typesBoth['page', 'post']Post types eligible for sync. Other post types need Premium.
ez_ps_overwrite_mediaReceiverfalseIf true, replaces a production file in place when the bytes differ. Identical files are skipped, and a file in another upload month is never overwritten.
ez_ps_auto_rollbackReceivertrueRestores the pre-sync snapshot when a sync fails before it commits.
ez_ps_require_snapshot_before_applyReceivertrueAborts sync operations if backup snapshot generation fails.
ez_ps_max_log_entriesBoth500Caps Sync Log rows, pruning oldest entries first (10 to 10,000). Free installs keep at most 50.
ez_ps_notify_emailReceiver''Recipient email address for automated status alerts.

Frequently Asked Questions

Does this plugin support WordPress Multisite?

No. EZ Page Sync supports single-site WordPress installs only.

How does the rollback system restore pages?

Before a sync touches an existing production page, the receiver saves that page's post fields and meta as a JSON snapshot in wp_options. It keeps the 5 newest snapshots per page, for 30 days (90 on Premium). With Auto Rollback on (the default), a sync that fails before it commits restores the snapshot automatically. On Premium, the Rollback Manager tab restores any kept snapshot in one click.

What happens during a "Dry Run"?

Dry Run sends the signed payload to production and runs the receiver's checks (authentication, payload validation and page matching), but skips every database and media write. Use it to confirm a page will match and pass validation before anything changes on the live site.

How do I rotate key credentials safely?

Go to EZ Page Sync → Settings and click Regenerate Key. You must copy the new key to the other environment immediately. Requests signed with the old key are rejected from that moment.

Why are debug messages not written to the Sync Log?

To keep the database lean. With Debug Mode on in Settings (or the EZ_PS_DEBUG constant set), verbose entries go to a protected file, wp-content/ez-page-sync-debug.php, which you can view, download, or clear from Settings. It rotates at 10 MB. The Sync Log table only records events like syncs, failures, and rollbacks.

Does EZ Page Sync replace full-site migration tools like WP Migrate or WPvivid?

No — it solves a different problem. Full-site migration tools replace the entire database, which overwrites WooCommerce orders, form submissions, and new content added to production. EZ Page Sync targets a single page or post, leaving everything else on production untouched. Use a migration tool for initial clones and EZ Page Sync for ongoing page-level deploys.

Is EZ Page Sync available on the WordPress.org plugin repository?

Not currently. The Free version is available as a direct download from ezpagesync.com. Install it by uploading the plugin zip through your WordPress admin panel (Plugins → Add New → Upload). The Premium version is delivered through a Freemius account after purchase.

Changelog

v1.2.6

November 20, 2026

Snapshot & Overwrite Safety:

  • A sync stopped because someone saved the same production page at the same moment no longer rolls that page back over their save.
  • A sync refused at the Force prompt no longer creates a snapshot, so it can't push a real restore point out of the 5-snapshot limit.
  • Syncing onto a production page that was never synced from staging now asks you to confirm with Force Sync. After one forced sync the page is linked and later syncs are silent.
  • If a log write or notification email fails after the page has saved, the sync is no longer rolled back. It returns success with a warning.
  • Pages linked by Baseline after refresh are checked on their first sync and ask for confirmation if the production slug doesn't match.

v1.2.5

November 4, 2026

List Status & Help Fixes:

  • A trashed page on the Pages and Posts list no longer shows as Modified or offers Sync and Discard.
  • Help & FAQ now matches what the receiver does, including Free's limits (one role, one destination, 50 Sync Log rows).
  • Cleaner Help & FAQ accordion and a destinations table that works on small screens.

v1.2.4

November 3, 2026

Publish Dates & Media Paths:

  • Publish dates sync for every status, not only scheduled posts. Preview lists Author and Publish Date changes and warns when the staging author has no production match.
  • A file path stored on an attachment is checked before it's overwritten; a path outside the uploads directory is uploaded as a new file instead.
  • The Rollback Manager picker lists the 300 most recently snapshotted posts (adjustable with ez_ps_rollback_candidate_limit).

v1.2.3

November 2, 2026

Rollback Manager Fixes:

  • When production has several copies of a file and the first one is missing on disk, the other copies are tried before uploading again.
  • Quickly switching posts in the Rollback Manager can no longer show the previous post's snapshots.

v1.2.2

November 2, 2026

Media Dedup & Rollback Manager UI:

  • A sync only uploads files production doesn't already have. A file uploaded by hand on production is reused only when its bytes are identical.
  • Overwrite Existing Media skips identical files and never writes over a file in another upload month.
  • Two WordPress sites on one MySQL server no longer block each other's syncs, trash jobs, or log cleanup.
  • Rollback Manager gets content search, grouping by post type, and a compact newest-first snapshot list.

v1.2.1

October 30, 2026

Trash Link Proof & View Details:

  • Trash on production only moves a page whose production copy is proven linked to this staging post. A matching slug isn't enough.
  • Select all sendable now selects every loaded sendable row, including rows on other pages.
  • Plugins → View Details shows the description, installation, FAQ, and changelog from the bundled readme.
  • The ez_ps_feature_enabled filter can turn a Premium feature off but never on.

v1.2.0

October 29, 2026

Trash on Production:

  • Trashing a linked page on staging marks it pending. From Sync Pages → Trashed, a confirm dialog lists each production page before anything is sent, and production moves it to its own trash, with Undo. One page per job is free; more needs Premium.
  • Sync Pages remembers your post type, status, layout, sort, and page-size choices per user.
  • The admin menu badge counts trashed pages waiting for production and updates without a page load.
  • Scheduled posts now publish at the right time on production.

v1.1.47

October 17, 2026

ACF Accuracy, Discard Baselines & Sync Dialog:

  • Fixed ACF sync to send ACF's raw storage shape, so link fields keep their full title, URL, and target, and unchanged ACF fields are no longer flagged as different on Preview.
  • Added a first-edit baseline snapshot so Discard Edits is available as soon as an in-sync page is edited, plus an admin menu badge counting pages with unsynced edits.
  • Sync status counters (Last Sync, Synced Today, Failed (7d), Total Syncs) now survive clearing or rotating the sync log.
  • Renamed the Dry Run button to Sync. It still opens the preview first, and the post-edit metabox now uses the same preview dialog as the dashboard.

v1.1.46

October 12, 2026

Freemius SDK Security Update:

  • Updated the bundled Freemius SDK from 2.13.4 to 2.13.5: escaped admin-notice output, administrator-only opt-in, and pricing-page settings locked against URL overrides.
  • No changes to sync behavior or Free/Premium gating.

v1.1.45

October 8, 2026

Parent-Page Safety:

  • A child page whose parent can't be matched on production now stops with HTTP 409 (EZ_PS_PARENT_NOT_FOUND) instead of landing under a parent ID that only exists on staging. Pages already linked keep their production parent.
  • Preview reports the same case as blocked, and the force dialog is no longer offered for it.
  • Rejected parent-slug segments containing / or %2f. Update both staging and production.

v1.1.44

September 5, 2026

Preview Parity & Log Management:

  • Dry run previews now show the destination's hierarchical slug path and permalink, and the post-edit metabox matches the dashboard modal layout.
  • Added a "Latest per page" sync-log filter and a confirmed Delete Log bulk action.
  • The Sync Options tab and ACF toggle are hidden when ACF isn't available, and admin styles no longer leak onto post edit screens.

v1.1.43

September 5, 2026

Hierarchical Matching & Media Extraction:

  • Added parent-aware matching via post_parent_slugs, so child pages that share a slug under different parents no longer cross-match.
  • Added Astra display-condition remapping, ACF slug hints for relationship and post-object fields, and production-side resolution of excluded video attachments.
  • Media extraction now picks up root-relative upload URLs in CSS url(...), classic [gallery] shortcodes, and numeric-string Elementor image IDs.

v1.1.42

September 2, 2026

Discard Edits & Media Preflight:

  • Added Discard Edits (Free): restores a staging page to its last-synced state in a single all-or-nothing operation.
  • Added a media preflight handshake that drops files production already has from the payload, excluded video files by default (ez_ps_skip_video_media), and added an opt-in referenced-media-only mode.
  • Every sync now goes through Preview, then Apply. The separate Sync Now and Bulk Sync controls were removed in favor of single-page syncs, and ambiguous slug matches now require force.

v1.1.41

August 22, 2026

Silent-Failure Hardening & WordPress 7.0:

  • Every apply step (meta, Yoast, media, Astra, Elementor, ACF, taxonomies) now reports its own failure as a warning, or aborts with auto-rollback when Fail On Partial Sync is on.
  • Auto Rollback now fires on any \Throwable, and a failed first-time create deletes the blank page it created.
  • Raised the minimum WordPress version to 7.0 (tested up to 7.1). The native Pages/Posts list gained per-row sync buttons and the Locally Modified badge.

v1.1.40

August 12, 2026

Locally Modified Detection:

  • Sync Pages shows an amber Locally Modified badge when the production copy has diverged since the last sync, checked through a read-only, HMAC-signed /divergence-check endpoint.
  • Dashboard Dry Run now opens the same field-level diff report as the metabox.
  • Snapshot restores show the animated progress dialog, and the syncable-pages list is paginated with a Last Edit column.

v1.1.39

August 10, 2026

ACF Options Sync & Baseline Re-link:

  • Added Premium ACF Options page sync from a new Sync Options tab, written through ACF's own field APIs against an allow-list of known options pages.
  • Added "Baseline after production refresh" to re-link pages after staging is restored from production, without sending anything to the destination.
  • The receiver now caps request size and JSON nesting depth before authentication, and preserves the production author when the staging author no longer exists.

v1.1.38

July 26, 2026

Ownership Guards & Partial-Sync Accuracy:

  • Closed two ownership-check bypasses on multi-destination installs. A first-time slug match against an unlinked production page now requires force.
  • A partial sync (for example, a media failure) is no longer recorded as In Sync, so the deferred work re-syncs.
  • Reduced database load with batched child-post lookups and single-pruner log cleanup, and updated the Freemius SDK to 2.13.4.

v1.1.37

July 3, 2026

Free-Tier Safety & Reset Locks:

  • Fixed role locks on Free tier. The Admin::has_incoming_sync_history() check now tracks receiver connection pings using the ez_ps_receiver_last_contacted_at option, preventing role changes if a sender has established a connection.
  • Fixed options cleanup. Resetting a receiver now deletes ez_ps_receiver_last_contacted_at alongside metadata keys to allow re-purposing the site as a sender.
  • Expanded PHPUnit coverage with new test assertions for options gating and reset actions.

v1.1.36

July 3, 2026

API Key Rotation & Hardened Disconnection:

  • Updated Reset Sync Origin to regenerate the API key when disconnecting. This prevents stale senders from re-establishing ownership after metadata resets.
  • Updated settings interface to display the rotated key alongside confirmation prompts immediately after resets.
  • Added validation checks to confirm the reset actions are restricted to administrators (manage_options).

v1.1.35

July 3, 2026

Free-Tier Receiver Locking:

  • Locked the plugin role toggle on the Free tier when the site has received incoming sync entries, preventing accidental disruption of active staging senders.
  • Added server-side sanitization to reject role modifications if role-change lock criteria are met.

Need a custom WordPress plugin?

I build custom WordPress plugins, staging workflows, and integrations for Houston businesses.