wp_page_menu

FUNCTION wp-includes\post-template.php (ligne 1336) github
Filters the array of pages to exclude from the pages list.

Paramètres

Entrée :
$args = array(
Sortie :
@param string[] $exclude_array An array of page IDs to exclude.
@param string    $output      HTML output of the pages list.
@param array     $parsed_args An array of page-listing arguments. See wp_list_pages()
@param WP_Post[] $pages       Array of the page objects.
@param array|string $args {
@return void|string Void if 'echo' argument is true, HTML menu if 'echo' is false.

Utilisation

// Utilisation de la fonction wp_page_menu
$result = wp_page_menu($args = array();

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

Actualités

Chargement des actualités...