In WooCommerce you have many hooks & filters. How can I check what is inside of a filter parameter? For example, I want to unset some shipping rates based on certain conditions. How can I check what is inside my $rates or $package parameter? Answer You can first enable Wordpress debug log by editing your wp-config.php file adding the following
Tag: error-log
Where are PHP errors logged to if the error_log directive simply says “error_log”?
I ran phpinfo() and the error_log directive simply says error_log. What file is that referring to? i.e. what would the full path to the error_log be? Answer When the value simply says error_log (or error_log = error_log in your php.ini file), that means the errors will be written to a file called error_log in the same directory that the error
The PHP error log has stopped working. It did work
It’s been working for ages and stopped. I must be missing something obvious. File /etc/php5/apache2/php.ini relevant settings are: In my code I have: I see “About to log” on the page, but nothing in the error log. How can I fix this? Answer Restart the Web server. Until you do php.ini changes are not considered. Also, if you want to
Outputting all PHP errors to database not error_log
Is it possible to make all PHP errors be written to MySQL instead of to the standard error_log file. I guess this would be possible if i wrote my own error handler from scratch but i have a lot of legacy code in place and ideally i would just make 1 global change and that would be it. Can this