twentyeleven_page_menu_args

Show a home link for the wp_nav_menu() fallback, wp_page_menu().

Description

(array) twentyeleven_page_menu_args( (array) $args ); 

Returns (array)

The filtered page menu arguments.

Parameters (1)

0. $args (array)
The page menu arguments. @see wp_page_menu()

Usage

  1. if ( !function_exists( 'twentyeleven_page_menu_args' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The page menu arguments. @see wp_page_menu() 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentyeleven_page_menu_args($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function twentyeleven_page_menu_args( $args ) { 
  2. // WPCOM empty() instead of ! isset() 
  3. if ( empty( $args['show_home'] ) ) 
  4. $args['show_home'] = true; 
  5. return $args;