Hi!
I use this code in my functions php as mentioned in some of your answers:
require_once( ‘functions-enfold.php’);
add_filter(‘avf_debugging_info’, ‘remove_debugging_info’, $info);
function remove_debugging_info($info) {
$info = ”;
}
When i debug my wp installation i get this message:
Notice: Undefined variable: info in /var/www/vhosts/xxxxxxxxxxx.com/httpdocs/wp-content/themes/enfold/functions.php on line 469
The line 469 is this one:
add_filter(‘avf_debugging_info’, ‘remove_debugging_info’, $info);
How can i solve this Problem?
Thank you so much
Hey chooseone!
Use following code instead
add_filter('avf_debugging_info', 'remove_debugging_info', 10, 1);
function remove_debugging_info($info) {
return false;
}
Best regards,
Peter
Hi!
The new code also dont work – the same error! any other idea???
best
Hi!
Yes, I didn’t notice that the filter call was invalid. I changed my code and it should work now.
Regards,
Peter
Hey Peter!
Thx, your new code works fine.
best
Hi!
Great :)
Regards,
Peter