get_pagenum_link

FUNCTION wp-includes\link-template.php (ligne 2421) github
Retrieves the link for a page number.

Paramètres

Entrée :
$pagenum = 1, $escape = true
Sortie :
@param int  $pagenum Optional. Page number. Default 1.
@param bool $escape  Optional. Whether to escape the URL for display, with esc_url().
@return string The link URL for the given page number.

Utilisation

// Utilisation de la fonction get_pagenum_link
$result = get_pagenum_link($pagenum = 1, $escape = true);

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

Actualités

Chargement des actualités...