[wp-trac] [WordPress Trac] #35567: New argument `is_embeddable` for `register_post_type()`
WordPress Trac
noreply at wordpress.org
Fri Jan 24 13:30:43 UTC 2025
#35567: New argument `is_embeddable` for `register_post_type()`
-------------------------------------------------+-------------------------
Reporter: pampfelimetten | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: Future
| Release
Component: Embeds | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59700" 59700]:
{{{
#!CommitTicketReference repository="" revision="59700"
Posts, Post Types: Embeds: Add new `embeddable` argument to post types.
This new argument, which defaults to the value of `public`, can be used to
determine whether a post can be embedded using oEmbed. A new
`is_post_embeddable()` function is added to easily check this.
Props pampfelimetten, swissspidy, bradleyt, DrewAPicture, gadelhas,
mukesh27.
Fixes #35567.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35567#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list