troubleshooting Question

WordPress/PHP has me stuck with no logging...

Avatar of curiouswebster
curiouswebsterFlag for United States of America asked on
Web Languages and StandardsWeb DevelopmentPHPScripting LanguagesWordPress
5 Comments2 Solutions11 ViewsLast Modified:
When I check the debug.log, I see:
Step 1
Step 2

Here is the code:
error_log("Step 1", 0);


add_action( 'save_post', 'ajax_test' );
function ajax_test() {   
    error_log( "ajax_test entered", 0);
}
error_log("Step 2", 0);
So, this means EITHER:
1) error_log() does not work in an action
2) The code does not enter the function, ajax_test()

Is there a plug-in needed for logging inside of an action? Will this one help?
https://wordpress.org/plugins/aryo-activity-log/

Is there another way to log data, besides error_log()? Please let me know...

Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros