Trying to create output for debug
-
I am trying to debug a plugin , specifically a scheduled job that is tied in with a hook.
wp_schedule_event(time(), ‘daily’, ‘wp_refresh_asins’);
add_action(‘wp_refresh_asins’, ‘refreshAsins’);When refreshAsins runs, I want to see some output to verify settings, functionality etc as part of the development process.
How can I create output and where does it go? I have tried echo and trigger_error() but can’t find output generated by either.
What is the correct way to do this in the WordPress environment?
The topic ‘Trying to create output for debug’ is closed to new replies.