WordPress at Your Fingertips
function is not described

WP_Feed_Cache::create() public WP 2.8.0

Creates a new SimplePie_Cache object.

{} It's a method of the class: WP_Feed_Cache{}

No Hooks.


WP_Feed_Cache_Transient. Feed cache handler object that uses transients.


$WP_Feed_Cache = new WP_Feed_Cache();
$WP_Feed_Cache->create( $location, $filename, $extension );
$location(string) (required)
URL location (scheme is used to determine handler).
$filename(string) (required)
Unique identifier for cache object.
$extension(string) (required)
'spi' or 'spc'.


Since 2.8.0 Introduced.

Code of WP_Feed_Cache::create() WP 5.8.1

public function create( $location, $filename, $extension ) {
	return new WP_Feed_Cache_Transient( $location, $filename, $extension );