WP_Filesystem_Base::wp_plugins_dir()publicWP 2.7.0

Returns the path on the remote filesystem of WP_PLUGIN_DIR.

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_plugins_dir();

Changelog

Since 2.7.0 Introduced.

WP_Filesystem_Base::wp_plugins_dir() code WP 6.6.2

public function wp_plugins_dir() {
	return $this->find_folder( WP_PLUGIN_DIR );
}