Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created September 8, 2020 09:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanknudtskov/1718ee3b333adc35a5505d219f92bdd3 to your computer and use it in GitHub Desktop.
Save yanknudtskov/1718ee3b333adc35a5505d219f92bdd3 to your computer and use it in GitHub Desktop.
Adjust Facebook for WooCommerce Feed Regeneration Interval
<?php
/*
* Adjust the interval that the feed file is generated.
*/
add_filter( 'wc_facebook_feed_generation_interval', 'yanco_wc_facebook_feed_generation_interval', 10, 1 );
function yanco_wc_facebook_feed_generation_interval( $interval ) {
return 60 * 30;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment