WP_Filesystem_Base::is_readable() WordPress Method
The WP_Filesystem_Base::is_readable() method is used to check if a file is readable. This is useful for checking if a file is readable before attempting to read it.
WP_Filesystem_Base::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-base.php
public function is_readable( $file ) { return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |