Problem: I am trying to test that my CRED API calls are being triggered but my JavaScript browser console messages are not showing up as expected.
Solution: Instead of trying to write to the JavaScript console by echoing script tags, try using the PHP error log:
function add_parent_inquiry1($post_id, $form_data){ error_log('You posted: add_parent_inquiry1'); // basic string error_log($post_id . '<br />'); // you can append markup like this error_log(print_r($form_data, true)); // log the contents of an array or associative array }
Or, echo the information directly to the screen and call die(); to end PHP execution immediately.
Relevant Documentation: https://toolset.com/documentation/user-guides/debugging-toolset/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 3 replies, has 2 voices.
Last updated by 7 years, 3 months ago.
Assisted by: Christian Cox.