n5s/wp-block-visitor

There is no license information available for the latest version (dev-main) of this package.

A powerful WordPress library to extract data from blocks or tranform blocks effortlessly.

dev-main 2025-07-04 20:19 UTC

This package is auto-updated.

Last update: 2025-07-04 20:19:48 UTC


README

The wp-block-visitor library allows you to traverse and manipulate WordPress block structures using the visitor pattern. This approach provides a clean and extensible way to extract data or modify blocks, making it easier to implement custom logic for your WordPress projects.

Warning

🚧 This library is still in early stage. Feedback welcome. API might change.

Install

composer require n5s/wp-block-visitor

Usage

To be documented. Check the examples folder in the meantime.

You can also run them using WP-CLI:

wp visitor tree --require=examples/cli.php