WP_Filesystem_Base::abspath() – Returns the path on the remote filesystem of ABSPATH.

You appear to be a bot. Output may be restricted

Description

Returns the path on the remote filesystem of ABSPATH.

Usage

$string = WP_Filesystem_Base::abspath();

Parameters

Returns

string The location of the remote path.

Source

File name: wordpress/wp-admin/includes/class-wp-filesystem-base.php
Lines:

1 to 11 of 11
  public function abspath() {
    $folder = $this->WP_Filesystem_Base::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->WP_Filesystem_Base::is_dir( '/' . WPINC ) ) {
      $folder = '/';
    }

    return $folder;
  }
 

 View on GitHub View on Trac