get_comment_type

FUNCTION wp-includes\html-api\class-wp-html-tag-processor.php (ligne 3438) github
Indicates what kind of comment produced the comment node. Because there are different kinds of HTML syntax which produce comments, the Tag Processor tracks and exposes this as a type for the comment. Nominally only regular HTML comments exist as they are commonly known, but a number of unrelated syntax errors also produce comments.

Paramètres

Entrée :
N/A
Sortie :
@return string|null

Utilisation

// Utilisation de la fonction get_comment_type
$result = get_comment_type();

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

Actualités

Chargement des actualités...