firsttec_page_menu_args

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

Description

firsttec_page_menu_args( $args ); 

To override this in a child theme, remove the filter and optionally add your own function tied to the wp_page_menu_args filter hook.

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'firsttec_page_menu_args' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = firsttec_page_menu_args($args); 
  9.  

Defined (1)

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

/functions.php  
  1. function firsttec_page_menu_args( $args ) { 
  2. $args['show_home'] = true; 
  3. return $args;