Skip to content

Instantly share code, notes, and snippets.

@deivamagalhaes
Created May 14, 2020 20:17
Show Gist options
  • Save deivamagalhaes/2785ca089cbeb2450ad22e9ca24031b3 to your computer and use it in GitHub Desktop.
Save deivamagalhaes/2785ca089cbeb2450ad22e9ca24031b3 to your computer and use it in GitHub Desktop.
Increase Facebook feed generation interval to one hour
<?php
add_filter( 'wc_facebook_feed_generation_interval', function( $interval ) {
return HOUR_IN_SECONDS;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment