WP_Feed_Cache_Transient::mtime() WordPress Method
The WP_Feed_Cache_Transient::mtime() method is used to get the modification time of a cached feed. This can be useful for determining if a cached feed is still valid.
WP_Feed_Cache_Transient::mtime() #
Gets mod transient.
Return
(mixed) Transient value.
Source
File: wp-includes/class-wp-feed-cache-transient.php
public function mtime() {
return get_transient( $this->mod_name );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |