• Resolved danielbmxd

    (@danielbmxd)


    Hello, there is a way to modify the time of synchronization or update of the feed, since it is scheduled every 15 minutes

    wc_facebook_regenerate_feed Complete facebook-for-woocommerce Every 15 minutes

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support B C. a11n

    (@battouly)

    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?

    Thread Starter danielbmxd

    (@danielbmxd)

    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

    Plugin Support kellymetal a11n

    (@kellymetal)

    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.

    Thread Starter danielbmxd

    (@danielbmxd)

    Thank you, that was what I was looking for

    Plugin Support kellymetal a11n

    (@kellymetal)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Facebook regenerate feed’ is closed to new replies.