Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WV: Cron: Twitter

Get recent Tweets

// Scheduled Action Hook
function get_recent_tweets(  ) {
	// Get latest 5 tweets from @wokinghamvc
	// Get latest 5 tweets from #wokinghamvc
}

// Schedule Cron Job Event
function cron_twitter() {
	if ( ! wp_next_scheduled( 'get_recent_tweets' ) ) {
		wp_schedule_event( time(), 'hourly', 'get_recent_tweets' );
	}
}
add_action( 'wp', 'cron_twitter' );