WordPress at Your Fingertips
function is not described

wc_is_running_from_async_action_scheduler() WC 4.0.0

Test whether the context of execution comes from async action scheduler.

No Hooks.

Return

true|false.

Usage

wc_is_running_from_async_action_scheduler();

Changelog

Since 4.0.0 Introduced.

Code of wc_is_running_from_async_action_scheduler() WC 5.6.0

function wc_is_running_from_async_action_scheduler() {
	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	return isset( $_REQUEST['action'] ) && 'as_async_request_queue_runner' === $_REQUEST['action'];
}