Description
Determine if an order can be synced.
Usage
apply_filters(
'wp_data_sync_can_sync_order'
,
$can_sync
,
$order_id
,
$order
);
Parameters
$can_sync | bool | Can order be synced | $order_id | int | WC_Order ID | $order | object | WC_Order |
Code Example
add_filter(
'wp_data_sync_can_sync_order',
function
(
$can_sync
,
$order_id
,
$order
) {
//Do cool stuff here!!
return
$can_sync
;
), 10, 3 );
Contact us if you need a code example for this hook. We are happy to review your request.