WP_Filesystem_FTPext::is_readable() WordPress Method
The is_readable() method for the WP_Filesystem_FTPext class checks if a file is readable. This is useful for determining if a particular file can be read by the current user.
WP_Filesystem_FTPext::is_readable( string $file ) #
Checks if a file is readable.
Contents
Parameters
- $file
(string)(Required)Path to file.
Return
(bool) Whether $file is readable.
Source
File: wp-admin/includes/class-wp-filesystem-ftpext.php
public function is_readable( $file ) { return true; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |