WP_Filesystem_Base::exists()
Checks if a file or directory exists.
Метод класса: WP_Filesystem_Base{}
Хуков нет.
Возвращает
true|false
. Whether $path exists or not.
Использование
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->exists( $path );
- $path(строка) (обязательный)
- Path to file or directory.
Список изменений
С версии 2.5.0 | Введена. |
Код WP_Filesystem_Base::exists() WP Filesystem Base::exists WP 6.1.1
public function exists( $path ) { return false; }