WP_Filesystem_Base::get_base_dir
Устарела с версии 2.7.0. Больше не поддерживается и может быть удалена. Используйте
WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods.Locates a folder on the remote filesystem.
Метод класса: WP_Filesystem_Base{}
Хуков нет.
Возвращает
string|false. The location of the remote path, or false on failure.
Использование
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->get_base_dir( $base, $verbose );
- $base(строка)
- The folder to start searching from.
По умолчанию:'.' - $verbose(true|false)
- True to display debug information.
По умолчанию:false
Заметки
| Смотрите: WP_Filesystem_Base::abspath() |
| Смотрите: WP_Filesystem_Base::wp_content_dir() |
| Смотрите: WP_Filesystem_Base::wp_plugins_dir() |
| Смотрите: WP_Filesystem_Base::wp_themes_dir() |
| Смотрите: WP_Filesystem_Base::wp_lang_dir() |
Список изменений
| С версии 2.5.0 | Введена. |
| Устарела с 2.7.0 | use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead. |
Код WP_Filesystem_Base::get_base_dir() WP Filesystem Base::get base dir WP 7.1.2
public function get_base_dir( $base = '.', $verbose = false ) {
_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
$this->verbose = $verbose;
return $this->abspath();
}