[wp-trac] [WordPress Trac] #52138: Editor: Support filtering arguments in block type registration from metadata

WordPress Trac noreply at wordpress.org
Fri Jan 8 16:43:43 UTC 2021


#52138: Editor: Support filtering arguments in block type registration from
metadata
--------------------------------------+---------------------
 Reporter:  gziolo                    |       Owner:  gziolo
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.7
Component:  Editor                    |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by gziolo):

 * owner:  (none) => gziolo
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49948" 49948]:
 {{{
 #!CommitTicketReference repository="" revision="49948"
 Editor: Support filtering arguments in block type registration from
 metadata

 Adds 2 new hooks in `register_block_type_from_metadata`:

 - Named `block_type_metadata` to filter the content of metadata read from
 `block.json`
 - Named `block_type_metadata_settings` to filter the settings object
 determined from the metadata that is passed to `register_block_type` call

 Props swissspidy.
 Fixes #52138.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52138#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list