WordPress.org

Make WordPress Core

Ticket #49034: class-twentytwenty-svg-icons.php.patch

File class-twentytwenty-svg-icons.php.patch, 632 bytes (added by msaari, 2 months ago)

Adds the filter to the class-twentytwenty-svg-icons.php

Line 
161a62,73
2>                       /**
3>                        * Filters the social icons regex map.
4>                        *
5>                        * The map has social link keywords and regexes that match that social media
6>                        * URL patterns. To add more icons, rewrite the pluggable function
7>                        * twentytwenty_get_theme_svg() so that it includes the built-in SVG icons and
8>                        * also your new icons, and then add the social media URL pattern to this list.
9>                        *
10>                        * @param array An array where keys are social media icon keywords and the
11>                        *              values are regex patterns for the link matching.
12>                        */
13>                       $regex_map = apply_filters( 'social_icon_regex_map', $regex_map );