Latest Tech and Tips

How to Alter the WordPress RSS Widget’s Refresh Rate


As impressive as the constructed in WordPress RSS widget can be there are times that it simply does not upgrade quickly sufficient. Thanks to the reality that WordPress is so very easy to tailor we can conveniently transform this. In this post, we will certainly reveal you how to alter the WordPress RSS Widget’s refresh rate.

All you have to do is include the adhering to code to your style’s functions.php data or right into a site-specific plugin:

add_filter( 'wp_feed_cache_transient_lifetime',.
create_function('$ a', 'return 600;'-RRB-);.

In this instance it is established to refresh every 600 secs, or 10 mins. Simply modification this number to whatever you desire as well as your RSS widget will certainly refresh as necessary.