The Offer Expires in:

Days
Hours
Minutes
Seconds

Modifying the Syncing Frequency

By default, YT2Posts will synchronize with YouTube for new videos once every day. However, if you want to synchronize the videos with YouTube in custom intervals (e.g. once per week or twice per day), you can use the free plugin WP Crontrol and follow these steps:

1. Install the WP Crontrol plugin.

2. Go to Tools->Cron Events, as in the image below:

cron events

3. Click on Add Event, to schedule the syncronization event. Now you should select the PHP Cron Event and paste the following code into the PHP Code field:

if (class_exists('YT2Posts')) {
    global $yt2posts_instance;
    $yt2posts_instance->yt2posts_cron_fetching_videos_action();
}

4. Fill out the other options as in the image below:

cron task

In a similar way, you can even create custom recurrence schedules, although the existing ones should be more than enough.

5. Now you can see the new event in the list and will be executed recurrently. You can also trigger it manually by clicking on “Run Now” if you want, as shown below:

cron list

That’s it, you have successfully set up the video synchronization with YouTube!

Updated on September 4, 2023

Have a question for us?

Write to us and we will respond in no time!

This website uses cookies to ensure you get the best experience on our website. By clicking Accept & Close, you agree to our Cookie Policy.