Hi @danielbmxd,
I’m not sure if that was a question 😊.
Are you asking if there’s a way to modify the time of synchronization or update of the feed?
Hello, I would like the synchronization to be done only once a day or similar. Since in my logs I see too many scheduled task
Hi there,
There is a wc_facebook_feed_generation_interval filter available in the extension — you can see it in the code here.
Something like this should change it to run once a day instead of every 15 minutes:
// Change Facebook for WooCommerce feed generation interval
function my_custom_facebook_feed_interval( $interval ) {
return DAY_IN_SECONDS;
}
add_filter( 'wc_facebook_feed_generation_interval', 'my_custom_facebook_feed_interval', 10, 2 );
(Other available Time Constants are listed here)
That code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.
Thank you, that was what I was looking for
Hi there,
Thank you, that was what I was looking for
Glad to hear that! You’re very welcome. : )
I’m going to mark this thread as resolved. If you have any further questions, please start a new thread.
Have a wonderful day!