Yes, wp_doing_cron
will return true if the current request is a WP Cron request, or if it’s triggered from WP CLI
https://developer.wordpress.org/reference/functions/wp_doing_cron/
Yes, wp_doing_cron
will return true if the current request is a WP Cron request, or if it’s triggered from WP CLI
https://developer.wordpress.org/reference/functions/wp_doing_cron/