WP_Filesystem_Direct::is_readable( string $file ): bool

In this article

Checks if a file is readable.

Parameters

$filestringrequired
Path to file.

Return

bool Whether $file is readable.

Source

public function is_readable( $file ) {
	return @is_readable( $file );
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.