is_post_embeddable хук-фильтрWP 6.8.0

Filter whether a post is embeddable.

Использование

add_filter( 'is_post_embeddable', 'wp_kama_is_post_embeddable_filter', 10, 2 );

/**
 * Function for `is_post_embeddable` filter-hook.
 * 
 * @param bool    $is_embeddable Whether the post is embeddable.
 * @param WP_Post $post          Post object.
 *
 * @return bool
 */
function wp_kama_is_post_embeddable_filter( $is_embeddable, $post ){

	// filter...
	return $is_embeddable;
}
$is_embeddable(true|false)
Whether the post is embeddable.
$post(WP_Post)
Post object.

Список изменений

С версии 6.8.0 Введена.

Где вызывается хук

is_post_embeddable()
is_post_embeddable
wp-includes/post.php 2509
return apply_filters( 'is_post_embeddable', $is_embeddable, $post );

Где используется хук в WordPress

Использование не найдено.