Created
September 8, 2020 09:44
-
-
Save yanknudtskov/1718ee3b333adc35a5505d219f92bdd3 to your computer and use it in GitHub Desktop.
Adjust Facebook for WooCommerce Feed Regeneration Interval
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 | |
/* | |
* 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