---
id: gk-foundation-icon-picker-svg
title: "Filter - gk/foundation/icon-picker/svg"
sidebar_label: "gk/foundation/icon-picker/svg"
tags:
  - "1.40.0"
---

# Filter: gk/foundation/icon-picker/svg

Filters an icon's SVG each time it draws, such as to change its stroke width. The result is cleaned again; an SVG that does not pass is ignored.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $svg | `string` | The SVG. |
| $name | `string` | The icon name (the current one, for an old name). |

### Since

- 1.40.0

### Source

Defined in `Icons/Icons.php` at line 247

