Skip to content

Need ability to set the Block api_version #1277

@ggedde

Description

@ggedde

Currently the block api_version is at V3, but the default is still using V1.
See: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/

But it needs to be set when using register_block_type()

So we need a way to set it.
See this pull request which should resolve it: #1276

The pull request also adds a filter to set it globally:
Ex.

add_filter('carbon_fields_set_block_api_version', function () {
    return 3;
});

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions