WP_Filesystem_Base::abspath
Returns the path on the remote filesystem of ABSPATH.
Метод класса: WP_Filesystem_Base{}
Хуков нет.
Возвращает
Строку. The location of the remote path.
Использование
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->abspath();
Список изменений
| С версии 2.7.0 | Введена. |
Код WP_Filesystem_Base::abspath() WP Filesystem Base::abspath WP 6.8.3
public function abspath() {
$folder = $this->find_folder( ABSPATH );
/*
* Perhaps the FTP folder is rooted at the WordPress install.
* Check for wp-includes folder in root. Could have some false positives, but rare.
*/
if ( ! $folder && $this->is_dir( '/' . WPINC ) ) {
$folder = '/';
}
return $folder;
}