WordPress at Your Fingertips
function is not described

WP_Filesystem_Base::wp_themes_dir() public WP 2.7.0

Returns the path on the remote filesystem of the Themes Directory.

{} It's a method of the class: WP_Filesystem_Base{}

No Hooks.

Return

String. The location of the remote path.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->wp_themes_dir( $theme );
$theme(string|false)
The theme stylesheet or template for the directory.
Default: false

Changelog

Since 2.7.0 Introduced.

Code of WP_Filesystem_Base::wp_themes_dir() WP 5.8.2

public function wp_themes_dir( $theme = false ) {
	$theme_root = get_theme_root( $theme );

	// Account for relative theme roots.
	if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) {
		$theme_root = WP_CONTENT_DIR . $theme_root;
	}

	return $this->find_folder( $theme_root );
}