How to Use an SVG for a Custom Post Type Icon Pixeldust WordPress Developer 3 years ago View this code snippet on GitHub. Source