WP_Filesystem_Base::find_base_dir() public WP 2.5.0
Устарела с версии 2.7.0. Больше не поддерживается и может быть удалена. Используйте
WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()
.╳Locates a folder on the remote filesystem.
{} Это метод класса: WP_Filesystem_Base{}
Хуков нет.
Возвращает
Строку. The location of the remote path.
Использование
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->find_base_dir( $base, $echo );
- $base(строка)
- The folder to start searching from.
- $echo(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() instead. |
Код WP_Filesystem_Base::find_base_dir() WP Filesystem Base::find base dir WP 5.6.2
public function find_base_dir( $base = '.', $echo = false ) {
_deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' );
$this->verbose = $echo;
return $this->abspath();
}