[wp-trac] [WordPress Trac] #35567: New argument `is_embeddable` for `register_post_type()`

WordPress Trac noreply at wordpress.org
Fri Feb 26 19:53:40 UTC 2016


#35567: New argument `is_embeddable` for `register_post_type()`
-------------------------------------------------+-------------------------
 Reporter:  pampfelimetten                       |       Owner:  bradleyt
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Embeds                               |  Release
 Severity:  normal                               |     Version:  4.4
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 Thanks a bunch for the patches, guys!

 Just thinking out loud, [attachment:35567.4.diff] is a slightly different
 approach with a filterable `is_post_embeddable()` function (final name
 still to be defined). That way, developers can more easily make a single
 post non-embeddable.

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


More information about the wp-trac mailing list