is_post_embeddable

FUNCTION wp-includes\post.php (ligne 2521) github
Determines whether a post is embeddable.

Paramètres

Entrée :
$post = null
Sortie :
@param int|WP_Post|null $post Optional. Post ID or `WP_Post` object. Defaults to global $post.
@return bool Whether the post should be considered embeddable.

Utilisation

// Utilisation de la fonction is_post_embeddable
$result = is_post_embeddable($post = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...