Astra_Ext_Nav_Menu_Loader::modify_nav_menu_args( array $args )

Function to modify navigation menu parameters.


Description


Parameters

$args

(array) (Required) navigation menu arguments.


Return

(array) modified arguments.


Source

File: addons/nav-menu/classes/class-astra-ext-nav-menu-loader.php

		public function modify_nav_menu_args( $args ) {
			if ( 'primary' == $args['theme_location'] || 'secondary_menu' == $args['theme_location'] || 'above_header_menu' == $args['theme_location'] || 'below_header_menu' == $args['theme_location'] || 'mobile_menu' == $args['theme_location'] ) {
				$args['walker'] = new Astra_Custom_Nav_Walker();
			}
			return $args;
		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.