Skip to content

Instantly share code, notes, and snippets.

@mburnette
Created July 9, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mburnette/3fae615408e8950ddae706a03f532db5 to your computer and use it in GitHub Desktop.
Save mburnette/3fae615408e8950ddae706a03f532db5 to your computer and use it in GitHub Desktop.
[Change feed file generation interval] Change the interval duration of the generation of the Facebook feed file. #FacebookForWooCommerce
<?php // only copy this line if needed
/**
* Change feed file generation interval
*/
add_filter( 'wc_facebook_feed_generation_interval', function(){ return HOUR_IN_SECONDS * 24; } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment