comment_id_fields

FUNCTION wp-includes\comment-template.php (ligne 2057) github
Filters the returned comment ID fields.

Paramètres

Entrée :
$post = null
Sortie :
@param string $comment_id_fields The HTML-formatted hidden ID field comment elements.
@param int    $post_id           The post ID.
@param int    $reply_to_id       The ID of the comment being replied to.
@param int|WP_Post|null $post Optional. The post the comment is being displayed for.

Utilisation

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

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

Actualités

Chargement des actualités...