forked from mirror/_s
Remove home link from wp_page_menu() args.
This commit is contained in:
parent
37d283481f
commit
c4f6755f61
|
@ -7,18 +7,6 @@
|
|||
* @package _s
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
||||
*
|
||||
* @param array $args Configuration arguments.
|
||||
* @return array
|
||||
*/
|
||||
function _s_page_menu_args( $args ) {
|
||||
$args['show_home'] = true;
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'wp_page_menu_args', '_s_page_menu_args' );
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
|
|
Reference in New Issue