Debugging PHP object during Ajax call in WordPress
If you want to see your object in that variable you have to convert it to a string: $data_str = print_r( $this, true ); Then you can include it on your error array, or if you’re just debugging your code you can send it to your web server’s error log file using error_log: error_log( $data_str … Read more