Automattic\WooCommerce\Internal\Admin

WCAdminAssets::get_path()public staticWC 1.0

Gets the path for the asset depending on file type.

Метод класса: WCAdminAssets{}

Хуков нет.

Возвращает

Строку. Folder path of asset.

Использование

$result = WCAdminAssets::get_path( $ext );
$ext(строка) (обязательный)
File extension.

Код WCAdminAssets::get_path() WC 8.7.0

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