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 );
Related Posts:
- error_log() output for print_r() appearing on page
- username_exists() function can’t be access without logging in
- WordPress AJAX Pagination with query_posts
- Does the debug.log do log rotation?
- Security – Ajax and Nonce use [closed]
- PHP calling AJAX function that relies on passed PHP function values not working
- Looking for a better way to handle an ajax script that pulls in post data on click
- How to add default images into theme customizer image control?
- Can’t use get_results() in ajax query
- Validate a users email address when using gmail to register
- Use ajax to update_post_meta
- Problem with WordPress Ajax form
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- How to set a custom path, for ajax image upload folder in admin?
- admin-ajax.php responding with 0
- how to trace notice warning on core function is_page() & is_singular in class-wp-query.php
- Can I use HTTP POSTs? Is there a better alternative?
- How to prevent those PHP variables from being cached on WordPress?
- Use ajax from function.php
- How to test nonce with AJAX – Plugin development
- Same log message keeps on printing to debug.log file thousand of times
- get post based on category chosen in drop down – The ajax method
- get current custom post ID by WP_Query method
- Create onClick Event to Re-load a Widget
- How to store data from multiple forms using ajax and php
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Gutenberg block – Save PHP function’s output as HTML?
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Mute Debug Messages from Plugins
- Ajax date_query not working past the first iteration
- How to debug my custom login form looping intermittently
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- How to add a do_action on refreshing of WP customizer?
- [jQuery]Adding shortcode
- Display parent and child taxonomies in separate drop down select fields
- how to update and display an option without reloading the page
- WordPress admin-ajax.php 400 bad request
- Problem with AJAX in wordpress plugin
- How to keep track of when a vote is cast?
- set post limit at load more ajax wordpress
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- Ajax filter button display all posts
- Compare $_POST returned values with term array
- WordPress REST API register_rest_route give a 500 error
- How to display SQL query that ran in WC_Order_Query?
- How to use AJAX to call php page with parameter
- How can I find the cause of a 500 server error?
- javascript variable to wordpress php variable
- Post not populating for custom post type based on category selection
- Output votes to div dynamically in wordpress
- Incrementing PHP variable onclick to display posts by month
- How to use AJAX in WordPress in MYSQL query?
- add button to specific post
- Live search from database table
- Processing ajax call to php to insert into mysql database
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Search Ajax Call – Use Form Data in Response
- Why does PHP called with Jquery AJAX not allow additional php code to be added?
- Display WordPress search results based on the selected Sub-Category
- Deleting records with AJAX, deleting records as I search
- Using some Loop or repeatable fucntion in AJAX and PHP to reduce repeatability
- Database entry removed on browser refresh, Ajax PHP jQuery
- How do I call a value from the datase using ajax
- Post form – AJAX won’t upload featured image – Plugin development
- Load more posts using AJAX based on posts inside WP_Query
- PHP calling AJAX function that relies on passed PHP function values not working
- Where to add my PHP codes for AJAX Jquery to work?
- Adding ELSE argument to AJAX Live Search for “No results found”
- How can i find wrong word in search box and replace with correct word
- How to use wp_ajax_set_post_thumbnail?
- ajax contact form not submit message
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Can’t make lazy load for my site, help!
- How to reload a php script, using AJAX and jQuery
- use with class file into wp_ajax hook
- Top Authors list by highest post views with Ajax pagination
- Offset with ajax load more posts duplicates
- number of posts with “Load More”
- Notice: Undefined index: post_title error
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- wordpress more than one ajax request at the same time issue
- Include search tags and users in my search results system
- Ajax not updating to database
- Ajax Load more CPT via shortcode
- Apply filters when loading post via ajax
- MySQL query in WordPress with AJAX
- Registration form not registering First and Last name
- Is custom behaviour possible when asynchronously uploading?
- Accessing Variables Used In a Plugin Using PHPStorm + XDebug
- AJAX with Selectbox Plugins (Select2, Chosen, Selectize)
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Data inserted in database, but ajax calls error function
- Load Meta box value into div AJAX [duplicate]
- Detecting IP Address of someone using ‘copy’ function [closed]
- Correct way to perform a GET to another PHP file hosted on wordpress
- How to display inputted data in Ajax without button or click event
- using AJAX [object Object]
- Ajax – how to use XMLHttpRequest in wordpress