[wp-trac] [WordPress Trac] #45275: Add a "use_block_editor_for_{post_type}" filter (was: Add a "use_block_editor_for{post_type}" filter)

WordPress Trac noreply at wordpress.org
Sun Nov 4 10:29:39 UTC 2018


#45275: Add a "use_block_editor_for_{post_type}" filter
-------------------------+---------------------
 Reporter:  pento        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.0
Component:  Editor       |     Version:  5.0
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------

Comment (by swissspidy):

 Dynamic filters in core usually pass that dynamic part as an argument as
 well, meaning that in this case the flag and the post type would be passed
 as arguments.

 That would clash with the existing `use_block_editor_for_post` filter that
 passes the flag and the post object as arguments.

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


More information about the wp-trac mailing list