Automattic\WooCommerce\Internal\Admin

WCAdminAssets::get_path()public staticWC 1.0

Gets the path for the asset depending on file type.

Method of the class: WCAdminAssets{}

No Hooks.

Return

String. Folder path of asset.

Usage

$result = WCAdminAssets::get_path( $ext );
$ext(string) (required)
File extension.

WCAdminAssets::get_path() code WC 8.7.0

public static function get_path( $ext ) {
	return ( $ext === 'css' ) ? WC_ADMIN_DIST_CSS_FOLDER : WC_ADMIN_DIST_JS_FOLDER;
}