HEX
Server: Apache/2
System: Linux ws03 5.14.0-570.44.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 17 10:32:11 EDT 2025 x86_64
User: keesdewit (1017)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/keesdewit/public_html/wp-content/themes/enfold/config-menu-exchange/config.php
<?php

if( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly


/*
 * Allow plugins to change menus - if they remove the theme location we have to return the correct location so
 * we can add the burger menu.
 *
 * @since 4.1.3
 */

if( ! function_exists( 'avia_filter_append_burger_menu_location' ) )
{
	/**
	 *
	 * @since 4.1.3
	 * @param string $current_location
	 * @param string $original_location
	 * @param array $items
	 * @param string|stdClass $args
	 * @return string
	 */
	function avia_filter_append_burger_menu_location( $current_location, $original_location, $items, $args )
	{
		/*	Bugfix for for Zen Menu Logic plugin - removed theme location from menu array to exchange the menus		*/
		if( class_exists( 'ZenOfWPMenuLogic' ) || class_exists( 'Themify_Conditional_Menus' ) )
		{
			$current_location = $original_location;
		}

		return $current_location;
	}

}

add_filter( 'avf_append_burger_menu_location', 'avia_filter_append_burger_menu_location', 10, 4 );