Creating Blocks with custom categories
-
Please can you clarify how the information provided to register_block_type function relates to the javascript source of the block, especially in relationship to the categories argument. Given the overlap, which information takes precedence. (eg it I define a category in the server call to register_block_type, does it override the information in the javascript definition.
The example given makes reference to “apiVersion” 2, and the documentation on https://developer.www.ads-software.com/reference/classes/wp_block_type/ only mentions version 1. What is the difference between version 1 and 2 and where is this explained?
The page I need help with: [log in to see the link]
- The topic ‘Creating Blocks with custom categories’ is closed to new replies.