Filters whether the current post is open for comments.
$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 de la fonction pings_open
$result = pings_open($post = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...