[wp-trac] [WordPress Trac] #54113: Override core/gallery block

WordPress Trac noreply at wordpress.org
Tue Sep 21 16:07:39 UTC 2021


#54113: Override core/gallery block
------------------------------+---------------------------------------
 Reporter:  lohic             |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  General           |     Version:  5.8.1
 Severity:  normal            |  Resolution:
 Keywords:  has-testing-info  |     Focuses:  administration, template
------------------------------+---------------------------------------

Comment (by lohic):

 @Boniu91 since, I did some more research, and it seems that for
 core/blocks, we need to use add_filter( ‘render_block’,
 ‘render_block_function’) instead of unregister_block_type() +
 register_block_type()

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


More information about the wp-trac mailing list