WP_Filesystem_Direct::is_writable()publicWP 2.5.0

Checks if a file or directory is writable.

Method of the class: WP_Filesystem_Direct{}

No Hooks.

Return

true|false. Whether $path is writable.

Usage

$WP_Filesystem_Direct = new WP_Filesystem_Direct();
$WP_Filesystem_Direct->is_writable( $path );
$path(string) (required)
Path to file or directory.

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_Direct::is_writable() code WP 6.6.2

public function is_writable( $path ) {
	return @is_writable( $path );
}