WP Manifestindependent plugin directory
manifest / updates / rehydrator

Rehydrator WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Pattern-based content transformation for WordPress block migrations.

★ 9stars
1.4kcomposer installs
v1.4.0latest · 1mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/humanmade/rehydrator/archive/refs/heads/main.zip

On Packagist as humanmade/rehydrator:

composer require humanmade/rehydrator
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Pattern-based content transformation for WordPress block migrations. Provides utilities for loading block patterns, resolving nested pattern references, and applying targeted transformations to populate templates with content.

Full documentation →

Installation

Via Composer:

composer require humanmade/rehydrator

As a WordPress plugin: Clone or download this repository to wp-content/plugins/ and activate.

Requirements

  • PHP 8.0+
  • WordPress 6.0+

Quick Start

use HM\Rehydrator\Template;

$transformer = new Template( 'theme/template-article' );

$content = $transformer
    ->replace_text( 'theme/hero', 'core/heading', occurrence: 0, text: $title )
    ->replace_text( 'theme/hero', 'core/paragraph', occurrence: 0, text: $standfirst )
    ->replace_attributes( 'theme/hero', 'core/image', occurrence: 0, attrs: [
        'id'  => $image_id,
        'url' => $image_url,
    ] )
    ->replace_placeholder( 'content-placeholder', $body_blocks )
    ->get_content();

wp_update_post( [
    'ID'           => $post_id,
    'post_content' => $content,
] );

For full API documentation including all transformation methods and helper namespaces, see the docs site.

Development

Running Tests

composer install
composer test

Code Style

composer lint

License

GPL-2.0-or-later

Releases

8 releases.

Tag
Published
v1.4.0 latest
Sep 8, 2026 1mo ago
Sep 7, 2026 1mo ago
Sep 3, 2026 1mo ago
Aug 4, 2026 2mo ago
Aug 4, 2026 2mo ago
Jul 24, 2026 3mo ago
Jul 21, 2026 3mo ago
Jul 15, 2026 3mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Rehydrator 1.4.0 · audited by WP Registry

No security issues found.

Audited release
1.4.0
Findings
none
Worst severity
—
Content hash
a5d7dfddc6e555886e6e69a3…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.