On this page
WP_Filesystem_Direct::is_readable( string $file ): bool
Checks if a file is readable.
Parameters
$filestring Required-
Path to file.
Return
bool Whether $file is readable.
Source
File: wp-admin/includes/class-wp-filesystem-direct.php. View all references
public function is_readable( $file ) {
return @is_readable( $file );
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Filesystem_Direct::dirlist() wp-admin/includes/class-wp-filesystem-direct.php | Gets details for files in a directory or a specific file. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_direct/is_readable