WP_Filesystem_SSH2::is_readable() WordPress Method
WP_Filesystem_SSH2::is_readable() is a method used to check whether a file is readable by the current user. This is useful for determining whether a user has the appropriate permissions to read a file.
WP_Filesystem_SSH2::is_readable( string $file ) #
Checks if a file is readable.
Parameters
- $file
(string)(Required)Path to file.
Return
(bool) Whether $file is readable.
Source
File: wp-admin/includes/class-wp-filesystem-ssh2.php
public function is_readable( $file ) { return is_readable( $this->sftp_path( $file ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |