Created
August 8, 2019 14:37
-
-
Save leewillis77/30b421cf95d8f15a5f93fc4e95004ef9 to your computer and use it in GitHub Desktop.
Modify feed inclusion in WooCommerce Google Product Feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_gpf_exclude_product', function ($excluded, $id, $feed_format ) { | |
// Return $excluded to follow the calculated logic. | |
// Return TRUE to exclude a product | |
// Return FALSE to include it. | |
return $excluded; | |
},10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment