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

    no thumbnail sorry: 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,