// Example showing how to customize the output of a social sharing icon HTML using a custom SVG.
add_filter( 'wpex_social_share_items', function( $items ) {
$items['twitter']['icon'] = '<svg viewBox="328 355 335 276" xmlns="http://www.w3.org/2000/svg"><path d="M630 425a195 195 0 01-299 175 142 142 0 0097-30 70 70 0 01-58-47 70 70 0 0031-2 70 70 0 01-57-66 70 70 0 0028 5 70 70 0 01-18-90 195 195 0 00141 72 67 67 0 01116-62 117 117 0 0043-17 65 65 0 01-31 38 117 117 0 0039-11 65 65 0 01-32 35z" fill="currentColor"/></svg>';
return $items;
} );
Snippets: Use Custom SVG for Social Share Icon
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)