WooCommerce::plugin_path()publicWC 1.0

Get the plugin path.

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

No Hooks.

Return

String.

Usage

$WooCommerce = new WooCommerce();
$WooCommerce->plugin_path();

Code of WooCommerce::plugin_path() WC 6.5.1

public function plugin_path() {
	return untrailingslashit( plugin_dir_path( WC_PLUGIN_FILE ) );
}