Automattic\WooCommerce\Internal\Admin
WCAdminAssets::get_path
Gets the path for the asset depending on file type.
Method of the class: WCAdminAssets{}
No Hooks.
Returns
String. Folder path of asset.
Usage
$result = WCAdminAssets::get_path( $ext );
- $ext(string) (required)
- File extension.
WCAdminAssets::get_path() WCAdminAssets::get path code WC 10.9.4
public static function get_path( $ext ) {
return ( 'css' === $ext ) ? WC_ADMIN_DIST_CSS_FOLDER : WC_ADMIN_DIST_JS_FOLDER;
}