← News & Updates

Auto-distribution and stored ID handling arrive in Distributor 2.2.0

Distributor 2.2.0 is here, and it brings some powerful new options for teams that share content across multiple WordPress sites. The headline additions are an auto-distribution capability and improved handling of stored data references, alongside an important security fix on the pull screen.

Auto-distribute your posts automatically

Previously, distributing a post to connected sites was a manual step. This release adds the ability to automatically distribute posts as they’re published, so your content can flow to your network of sites without anyone lifting a finger. This is especially handy for larger publishing operations where consistency and speed matter.

The feature is opt-in and controlled by developers, who can fine-tune which post types and connections are eligible. If your workflow would benefit from hands-off distribution, chat with your development team about switching it on.

Smarter handling of stored references

Distributor 2.2.0 introduces a new way to handle data that references specific IDs — such as IDs stored in post meta, shortcodes, or block attributes. This means content that relies on references to other posts, terms, or media can now be distributed more reliably, with those references correctly translated on the receiving site.

Other changes

This release also resolves a couple of noteworthy issues and tightens up security:

  • Security fix — Cross-site scripting vulnerabilities on the pull screen have been prevented.
  • Subscription update fix — Post data is now correctly slashed when sent via a subscription update, preventing content like LaTeX shortcodes from being corrupted.
  • Documentation — Broken images in the docs have been fixed.

Please note: this release raises the minimum supported WordPress version from 6.5 to 6.6, and it has been tested up to WordPress 6.8. Make sure your sites are running WordPress 6.6 or later before updating.

For developers

The stored ID handling work introduces a new distributor_register_data function, which lets you register stored data references and define custom pre-distribution and post-distribution callbacks to process them. Default pre and post callbacks are also included for common entities like posts, terms, and media, so you can simply provide a data type, location, and attribute without writing custom callbacks in many cases.

  • Auto-distribution filter — Enable automated distribution via the new dt_auto_distribution_enabled filter, with controls to limit allowed post types and connections.
  • Dependency updates — Numerous npm dependencies have been bumped for security, including ws, axios, express, and @wordpress/scripts.
  • Tooling — ESLint errors were fixed, E2E tests improved, and third-party GitHub Actions are now pinned to specific commit hashes for supply-chain security.

A warm welcome to first-time contributors @chandrapatel, @Sourabh208, and @GaryJones, whose work is part of this release.

See the full release notes on GitHub. Learn more and download Distributor.

Download the Plugin