[wp-trac] [WordPress Trac] #51819: use_block_editor_for_post() not avaialble by front end

WordPress Trac noreply at wordpress.org
Wed Nov 18 17:27:26 UTC 2020


#51819: use_block_editor_for_post() not avaialble by front end
--------------------------+-----------------------------
 Reporter:  theMikeD      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I have a use case where I need to know if a post is using the block editor
 in front end code. The normal function for this check would be
 `use_block_editor_for_post()` but this is loaded for admin-only, as part
 of `wp-admin/includes/post.php`

 If there is an alternative I'm all ears, but this would seem to be the
 right function to use, and the docs give no indication that this is admin-
 only.

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


More information about the wp-trac mailing list