Thank you @builtbyjordan , I hope that future dev on the plugin allows for these options.
My attempt at using the filter seems to be failing… attempting to verify against an array of product IDs that are no longer in stock. What am I doing wrong? The plugin just hangs on sync.
function maybe_exclude_product_from_syncing( $product_id ): bool {
$outofstock = array(2562,2721,2055,2726,2454,2406,2095,2602,2120,2900,2901,2487,2488,2401,2528,2032,2784,2793,2850,2188,2043,2905,2486,2512);
if(in_array($product_id, $outofstock)){
return false;
}
}
add_filter( ‘mailchimp_should_push_product’, ‘maybe_exclude_product_from_syncing’, 10, 1 );