WP_Filesystem_ftpsockets::is_readable() WordPress Method
The WP_Filesystem_ftpsockets::is_readable() method is used to check whether a file is readable. This is useful for checking if a file exists before attempting to read it.
WP_Filesystem_ftpsockets::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-ftpsockets.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. |