Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53149


Ignore:
Timestamp:
05/04/2021 11:57:41 AM (4 years ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53149 – Description

    initial v1  
    55At the moment, it's mandatory to create the PHP file for the plugin that contains only a single block type registration code when developing for Block Directory. Those plugins rarely have PHP code, so we could simplify the flow for developers by making it possible to use `block.json` to source all required metadata. If the current metadata schema doesn't contain some fields that can be declared only in the PHP comment (some are duplicated in `readme.txt`, we can always include it in `block.json`.
    66
    7 In the case when developers would like to use the `render_callback`, they could use the concept proposed in  #53148 - the `renderCallback` file reference in `block.json`. This way, the process of validation of block types submitted to Block Directory would get further simplified.
     7In the case when developers would like to use the `render_callback`, they could use the concept proposed in  #53148 - the `renderTemplate` file reference in `block.json`. This way, the process of validation of block types submitted to Block Directory would get further simplified.