Forums

Trying to create output for debug (1 post)

  1. ed4becky
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.