Determines if a directory is writable.
This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.
$pathstringrequired
function wp_is_writable( $path ) {
if ( 'Windows' === PHP_OS_FAMILY ) {
return win_is_writable( $path );
}
return @is_writable( $path );
}
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_writable