Last active
September 13, 2021 07:53
-
-
Save Auke1810/30332e7eda87ce8d2919fa5f14e986cc to your computer and use it in GitHub Desktop.
remove all products in array from feed.
This file contains hidden or 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? | |
function remove_some_products_from_the_queue( $products, $feed_id ) { | |
// Products to remove from the feed | |
$products_to_remove = array( | |
'20890', | |
'20891', | |
'20972', | |
); | |
return array_diff( $products, $products_to_remove ); | |
} | |
add_filter( 'wppfm_products_in_feed_queue', 'remove_some_products_from_the_queue', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment