Display or retrieve list of pages with optional home link.

The arguments are listed below and part of the arguments are for {@link wp_list_pages()} function. Check that function for more info on those arguments.

Signature

wp_page_menu( $args = array() )
args
 (array|string) Optional. Arguments to generate a page menu. {@see wp_list_pages() for additional arguments.
Default: array()

Return

(string) html menu

Source

function wp_page_menu( $args = array() ) {
	$defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
	$args = wp_parse_args( $args, $defaults );

	/**
	 * Filter the arguments used to generate a page-based menu.
	 *
	 * @since 2.7.0
	 *
	 * @see wp_page_menu()
	 *
	 * @param array $args An array of page menu arguments.
	 */
	$args = apply_filters( 'wp_page_menu_args', $args );

	$menu = '';

	$list_args = $args;

	// Show Home in the menu
45 more lines...
WP Trac GitHub

Link here