Skip to content

Is there a hook that can override the "useBlockProps" of the core block? #33953

@ddryo

Description

@ddryo

I use createHigherOrderComponent to set it up in the core block from the plugin.

Is there any way to add a data- or style attribute to the core block to match those settings?

I was thinking that if useBlockProps() had hooks, you could do that, do you have such hooks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] ExtensibilityThe ability to extend blocks or the editing experience[Package] Block editor/packages/block-editor[Type] QuestionQuestions about the design or development of the editor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions