Using wp_set_script_translations without manually registering the script

@drskullster already posted a good answer, but I thought I should share the following which explains why wp_set_script_translations() needs to be called manually: Yes it’s true that WordPress will automatically register and enqueue the block editor script. So we do not need to manually register/enqueue that script! WordPress will also automatically set the script’s translations, … Read more

How do I assign a block template (.html) to a custom post type?

Classic and block(-based) themes both use the same template hierarchy, so for example in classic themes, we can add a template named single-<post type>.php which would be used as the default template for displaying single posts in a specific post type, and in block themes, the equivalent template is named single-<post type>.html, but that template … Read more