Parse a custom post and retrieve the content from its (Gutenberg) blocks

1.2.0 2023-11-28 11:38 UTC

This package is auto-updated.

Last update: 2023-11-28 11:45:32 UTC


Parse a custom post and retrieve the content from its (Gutenberg) blocks.

This package is based on project Automattic/vip-block-data-api.

We want to express our most sincere thanks to the awesome team who created that project and released it under GPL 3.0 license ❤️.


Via Composer

composer require pop-wp-schema/block-content-parser


The source code is hosted on the GatoGraphQL monorepo, under WPSchema/packages/block-content-parser.


Initialize the component:


PHP versions


  • PHP 8.1+ for development
  • PHP 7.2+ for production

Supported PHP features

Check the list of Supported PHP features in GatoGraphQL/GatoGraphQL

Preview downgrade to PHP 7.2

Via Rector (dry-run mode):

composer preview-code-downgrade


PSR-1, PSR-4 and PSR-12.

To check the coding standards via PHP CodeSniffer, run:

composer check-style

To automatically fix issues, run:

composer fix-style

Change log

Please see CHANGELOG for more information on what has changed recently.


To execute PHPUnit, run:

composer test

Report issues

To report a bug or request a new feature please do it on the GatoGraphQL monorepo issue tracker.


We welcome contributions for this package on the GatoGraphQL monorepo (where the source code for this package is hosted).

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.


If you discover any security related issues, please email leo@getpop.org instead of using the issue tracker.



GNU General Public License v2 (or later). Please see License File for more information.