Determines whether the current post is open for comments. For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.
$post = null
Sortie :
@param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. @return bool True if the comments are open.
// Utilisation de la fonction comments_open
$result = comments_open($post = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...