• Hello!

    Recently I installed Listify theme on my site but I detected some warnings with If Menu Plugin.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/botffy57/public_html/scandilab.com/wp-content/plugins/if-menu/if-menu.php on line 110

    Could you please help me with this?

    Thanks and Best Regards,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I found out that

    add_filter('if_menu_conditions', 'exis_menu_conditions');
    function exis_menu_conditions($conditions) {
    	$conditions[] = [
    		'id' => 'user-validated',
    		'name' => __('If user is validated', 'exis'),
    		'condition' => function($items){
                        return true;
                    }
    	];
    	return $conditions;
    }

    needs to become

    
    'condition' => 'callback_function'
    

    you need to add function not to build it there

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: call_user_func_array() expects parameter …no array or string given’ is closed to new replies.