WP_Filesystem_Direct::atime() WordPress Method
The WP_Filesystem_Direct::atime() is a native Wordpress method used to get the last access time of a given file.
WP_Filesystem_Direct::atime( string $file ) #
Gets the file’s last access time.
Contents
Parameters
- $file
(string)(Required)Path to file.
Return
(int|false) Unix timestamp representing last access time, false on failure.
Source
File: wp-admin/includes/class-wp-filesystem-direct.php
public function atime( $file ) { return @fileatime( $file ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |