wp_is_writable()
Determines if a directory is writable.
This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.
Хуков нет.
Возвращает
true|false. Whether the path is writable.
Использование
wp_is_writable( $path );
- $path(строка) (обязательный)
- Path to check for write-ability.
Заметки
- Смотрите: win_is_writable()
Список изменений
| С версии 3.6.0 | Введена. |
Код wp_is_writable() wp is writable WP 6.8.3
function wp_is_writable( $path ) {
if ( 'Windows' === PHP_OS_FAMILY ) {
return win_is_writable( $path );
}
return @is_writable( $path );
}