WC_AJAX::check_locked_orders
Hooked to heartbeat_received the orders screen to refresh the locked status of orders in the list table.
Method of the class: WC_AJAX{}
No Hooks.
Returns
Array. Response to be sent.
Usage
$result = WC_AJAX::check_locked_orders( $response, $data );
- $response(array) (required)
- The heartbeat response to be sent.
- $data(array) (required)
- Data sent through the heartbeat.
Changelog
| Since 7.8.0 | Introduced. |
WC_AJAX::check_locked_orders() WC AJAX::check locked orders code WC 10.5.0
private static function check_locked_orders( $response, $data ) {
return wc_get_container()->get( Automattic\WooCommerce\Internal\Admin\Orders\EditLock::class )->check_locked_orders_ajax( $response, $data );
}