WordPress at a glance
function is not described


Package::get_path() public WC 1.0

Deprecated from version since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::get_path(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Return the path to the package.

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

No Hooks.


String. Nothing.


$result = Package::get_path();


Deprecated Since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::get_path()

Code of Package::get_path() WC 5.3.0

public static function get_path() {
	wc_deprecated_function( 'Automattic\WooCommerce\RestApi\Server::get_path()', '4.5.0' );
	return \Automattic\WooCommerce\RestApi\Server::get_path();