get_page_of_comment

FUNCTION wp-includes\comment.php (ligne 1024) github
Calculates what page number a comment will appear on for comment paging.

Paramètres

Entrée :
$comment_id, $args = array(
Sortie :
@param int   $comment_id Comment ID.
@param array $args {
@return int|null Comment page number or null on error.

Utilisation

// Utilisation de la fonction get_page_of_comment
$result = get_page_of_comment($comment_id, $args = array();

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

Actualités

Chargement des actualités...