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

WordPress Trac noreply at wordpress.org
Sun Nov 4 01:08:30 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       |   Keywords:  needs-patch
  Focuses:               |
-------------------------+-------------------------
 Per @westi's [https://make.wordpress.org/core/2018/10/30/block-editor-
 filters/#comment-34290 comment], it would be helpful to create a
 `use_block_editor_for_{post_type}` filter, which would allow a single post
 type to be more reliably filtered.

 For example, a post type called `blocks-are-bad-okay` could remove block
 editor support like so:

 `add_filter( 'use_block_editor_for_blocks-are-bad-okay', '__return_false'
 );`

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


More information about the wp-trac mailing list