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.1.1
function wp_is_writable( $path ) { if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) { return win_is_writable( $path ); } else { return @is_writable( $path ); } }