Plugin that extends WPGraphQL to support querying (Gutenberg) Blocks as data
ed23a32: BREAKING: Update Schema to reflect latest WordPress 6.5 changes.
rich-text
typerich-text
causing breaking changes to the existing block fields.squizlabs/php_codesniffer
from Composer's direct dependencies.Block::normalize_attribute_value()
$prefix parameter be an optional
string`.$supported_blocks_for_post_type_context
in wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces
to support boolean valuespost_content
before attempting to parse them.isset()
in Anchor::get_block_interfaces().Block::resolve()
and make name
field nullable.WP_Block_Type
before applying Anchor
interfaces.WPGraphQLHelpers
file to match class casing. The file name has been changed from includes/Utilities/WPGraphqlHelpers.php
to includes/Utilities/WPGraphQLHelpers.php
.DomHelpers.php
to DOMHelpers.php
and improve type-safety of internal methods.NodeWithEditorBlocks
interface to null
type names.f15f95c: Adds missing default value for content attribute CoreParagraph and CoreCode blocks. This will make the type of the content field String!
instead of String
9b71411: Feature: Add support for querying array type query data from blocks
Query source block attribute types are supported. See: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#query-source
graphql_single_name
, instead of the Post Type's name
. Fixes a bug where invalid Types were registered.use_block_editor_for_post_type
instead of post_type_supports
when filtering the post types.
BREAKING: Potential schema changes for GraphQL Types representing a Post Type that does not use the Block Editor. Each GraphQL Type representing a Post Type that does not have block editor support previously would have had the editorBlocks
field but that field will no longer exist on those Types.wpgraphql_content_blocks_should_apply_post_type_editor_blocks_interfaces
filter to allow controlling whether ${PostType}EditorBlock interfaces should be applied.2e7f2e8: Refactored register_block_types
to remove usages of register_graphql_interfaces_to_types
to improve performance.
Deprecated Anchor::register_to_block
public static method.