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