WC_AJAX::order_refresh_lockprivate staticWC 1.0

Hooked to heartbeat_received the edit order page to refresh the lock on an order being edited by the current user.

Method of the class: WC_AJAX{}

No Hooks.

Returns

Array. Response to be sent.

Usage

$result = WC_AJAX::order_refresh_lock( $response, $data );
$response(array) (required)
The heartbeat response to be sent.
$data(array) (required)
Data sent through the heartbeat.

WC_AJAX::order_refresh_lock() code WC 10.8.1

private static function order_refresh_lock( $response, $data ) {
	return wc_get_container()->get( Automattic\WooCommerce\Internal\Admin\Orders\EditLock::class )->refresh_lock_ajax( $response, $data );
}