How to debug vars inside function at functions.php file?
You can simply use var_dump() to do this. That is how I check values inside functions and filters. I have the following line of code in a file which I simply copy and paste where needed to dump the value of a variable ?><pre><?php var_dump( $variable_to_test ); ?></pre><?php The pre tags dump a nice readable … Read more