Opened 3 years ago
Last modified 21 months ago
#55486 new defect (bug)
register_block_type_from_metadata does NOT work within a theme but as a plugin
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 5.9.2 |
Component: | General | Keywords: | needs-refresh |
Focuses: | Cc: |
Description
I created a wordpress block and it guides me to the official documentation and it came to work as an external plugin, taking into account the architecture of block.json for its use, however it has not worked for me when the block is required to be integrated into a theme, delivery wrong path request looking in plugin folder plus adding another path.
example error peticion
Change History (3)
Note: See
TracTickets for help on using
tickets.
I think this is working as designed, with the design being that themes should not supply blocks since they can be switched at any time, even programmatically.