Debugging WordPress
…s( $obj ) ); Example logging a stacktrace (if my WP Debug Helper plugin is installed and active): error_log( wp_debug_backtrace() ); Example var dumping a variable (if my WP Debug Helper plugin is installed and active): error_log( wp_var_dump( $foo ) ); Dump all defined constants (note that this will be quite extensive within WordPress): error_log( print_r( get_defined_constants(), true ) ); Dump all available globals (note that this will be quite…