get_page_uri

FUNCTION wp-includes\post.php (ligne 6331) github
Builds the URI path for a page. Sub pages will be in the "directory" under the parent page post name.

Paramètres

Entrée :
$page = 0
Sortie :
@param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
@return string|false Page URI, false on error.

Utilisation

// Utilisation de la fonction get_page_uri
$result = get_page_uri($page = 0);

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

Actualités

Chargement des actualités...