bp_dtheme_page_menu_args

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

Description

bp_dtheme_page_menu_args( (array) $args ); 

Parameters (1)

0. $args (array)
Default values for wp_page_menu()

Usage

  1. if ( !function_exists( 'bp_dtheme_page_menu_args' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-themes/bp-default/functions.php'; 
  3.  
  4. // Default values for wp_page_menu() 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_dtheme_page_menu_args($args); 
  9.  

Defined (1)

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

/bp-themes/bp-default/functions.php  
  1. function bp_dtheme_page_menu_args( $args ) { 
  2. $args['show_home'] = true; 
  3. return $args;