Sort WooCommerce data with WP-CRON?

This doesn’t sound like a bad approach to me. The thing to keep in mind about WP_CRON is that it’s not a “real” cron and is only triggered when someone visits the site. To that end, you could also do the check when the product page loads and hide the button as needed.

Update all posts in custom post types with wp_cron()?

Yeah, you can schedule a WP cron job to loop through all posts of a post type and perform the check / add the term. Wouldn’t recommend that for a very big page with thousands of posts though. In example below the scheduled job would run approximately once a day – remember that wp cron … Read more

Custom recurrence not working / Wp Cron event

Maybe someone will make use of it, I had a similar problem and the solution was to call time() instead of current_time( ‘timestamp’ ) as the first argument of wp_schedule_event(). So it should look like this: wp_schedule_event( time(), ‘custom_interval’, ‘custom_hook’ ); I tried to find a difference between time and current_time(‘timestamp’), but they appear to … Read more