wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Set fetch_feed to update sooner

wordpress snippet

Adding this code snippet to your functions.php will force fetch_feed( $uri ) to update sooner, set time in milliseconds.

snippet :  PHPcopy
add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 900;') ); 

Did you like this post? If so please share it with your friends. Thanks!