Automattic\WooCommerce\Internal\Admin
WCAdminAssets::get_path()
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() WCAdminAssets::get path code WC 9.8.2
public static function get_path( $ext ) { return ( $ext === 'css' ) ? WC_ADMIN_DIST_CSS_FOLDER : WC_ADMIN_DIST_JS_FOLDER; }