On this page
WP_Feed_Cache::create( string $location, string $filename, string $extension ): WP_Feed_Cache_Transient
Creates a new SimplePie_Cache object.
Parameters
$locationstring Required-
URL location (scheme is used to determine handler).
$filenamestring Required-
Unique identifier for cache object.
$extensionstring Required-
'spi'or'spc'.
Return
WP_Feed_Cache_Transient Feed cache handler object that uses transients.
Source
File: wp-includes/class-wp-feed-cache.php. View all references
public function create( $location, $filename, $extension ) {
return new WP_Feed_Cache_Transient( $location, $filename, $extension );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Feed_Cache_Transient::__construct() wp-includes/class-wp-feed-cache-transient.php | Constructor. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_feed_cache/create