WPDev.one
Core Function
View Source on Trac ↗

is_post_embeddable()

is_post_embeddable( mixed $post = null )

Determines whether a post is embeddable.

Parameters 1 required

Name / Type Description
(int

| WP_Post | null) $post Optional. Post ID or `WP_Post` object. Defaults to global $post.

Required

Return Value

(bool)
Whether the post should be considered embeddable.

Function Information

Since Version
6.8.0
Source File
wp-includes/post.php
Advertisement