pings_open

FUNCTION wp-includes\comment-template.php (ligne 1317) github
Filters whether the current post is open for comments.

Paramètres

Entrée :
$post = null
Sortie :
@param bool $comments_open Whether the current post is open for comments.
@param int  $post_id       The post ID.
@param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.
@return bool True if pings are accepted

Utilisation

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

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

Actualités

Chargement des actualités...