W3cubDocs

/WordPress

WP_Feed_Cache::create( string $location, string $filename, string $extension ): WP_Feed_Cache_Transient

Creates a new SimplePie\Cache object.

Parameters

$locationstringrequired
URL location (scheme is used to determine handler).
$filenamestringrequired
Unique identifier for cache object.
$extensionstringrequired
'spi' or 'spc'.

Return

WP_Feed_Cache_Transient Feed cache handler object that uses transients.

Source

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

Changelog

Version Description
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_feed_cache/create