responsive_mobile_page_menu_args

Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.

Description

(array) responsive_mobile_page_menu_args( (array) $args ); 

Returns (array)

Parameters (1)

0. $args (array)
Configuration arguments.

Usage

  1. if ( !function_exists( 'responsive_mobile_page_menu_args' ) ) { 
  2. require_once '/includes/functions-menu.php'; 
  3.  
  4. // Configuration arguments. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = responsive_mobile_page_menu_args($args); 
  9.  

Defined (1)

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

/includes/functions-menu.php  
  1. function responsive_mobile_page_menu_args( $args ) { 
  2. $args['show_home'] = true; 
  3. $args['menu_class'] = 'main-nav'; 
  4. return $args;