Code Snippet Not Working | Need to Delete Log Cleanup Cron
-
Reference: Log Cleanup Cron | Need to Disable or Change Interval
The code snippet shown below (provided by TEC) does not work.
remove_action( Tribe__Log::CLEANUP, [ tribe( 'logger' ), 'do_cleanup' ] ); // or more aggressively remove_all_actions( Tribe__Log::CLEANUP );
The code snippet is supposed to delete TEC’s cron:
tribe_common_log_cleanup
Can you kindly review it and provide a code snippet that works?
Also, after installing WP Crontrol, I noticed the above cron does not have an Action assigned to it. It only shows an exclamation mark (click here for details). What does this mean? Is their something wrong with your code?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code Snippet Not Working | Need to Delete Log Cleanup Cron’ is closed to new replies.