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

Description Description

Return Return


Top ↑

Source Source

File: includes/wc-core-functions.php

function wc_is_running_from_async_action_scheduler() {
	return isset( $_REQUEST['action'] ) && 'as_async_request_queue_runner' === $_REQUEST['action'];

Top ↑

Changelog Changelog

Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.