WordPress at Your Fingertips
function is not described

as_enqueue_async_action() WC 1.0

Enqueue an action to run one time, as soon as possible

No Hooks.


Int. The action ID.


as_enqueue_async_action( $hook, $args, $group );
$hook(string) (required)
The hook to trigger.
Arguments to pass when the hook triggers.
Default: array()
The group to assign this job to.
Default: ''

Code of as_enqueue_async_action() WC 6.1.1

function as_enqueue_async_action( $hook, $args = array(), $group = '' ) {
	if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
		return 0;
	return ActionScheduler::factory()->async( $hook, $args, $group );