Home / functions.php / Set fetch_feed to update sooner
  • Set fetch_feed to update sooner

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

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    add_filter, wp,

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks