rest_oembed_ttl

rest_oembed_ttl

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_oembed_ttl') is found 1 times:

  • /wp-includes/class-wp-oembed-controller.php line 240
    		 * @param int    $time    Time to live (in seconds).
    		 * @param string $url     The attempted embed URL.
    		 * @param array  $args    An array of embed request arguments.
    		 */
    		$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );
    
    		set_transient( $cache_key, $data, $ttl );
    
    		return $data;
    	}
    }