WordPress filter hook
social_icons_supported_url_icon
Fired by 2 WordPress plugins, running on 30K+ sites between them.
How to use social_icons_supported_url_icon
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'social_icons_supported_url_icon', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from BlossomThemes Toolkit's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire social_icons_supported_url_icon
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
BlossomThemes Toolkit30,000+ installs
apply_filters( 'social_icons_supported_url_icon', array( 'feed' => 'rss', 'ok.ru' => 'odnoklassniki', 'vk.com' => 'vk', 'last.fm' => 'lastfm', 'youtu.be' => 'youtube', 'battle.net' => 'battlenet', 'blogspot.com' => 'blogger', 'play.google.com' => 'play', 'plus.google.com' => 'google-plus', 'photos.google.com' => 'googlephotos', 'chrome.google.com' => 'chrome', 'scholar.google.com' => 'google-scholar', 'feedburner.google.com' => 'mail', ) )includes/class-blossomthemes-toolkit-functions.php:181 -
LabTheme CompanionFewer than 10 installs
apply_filters( 'social_icons_supported_url_icon', array( 'feed' => 'rss', 'ok.ru' => 'odnoklassniki', 'vk.com' => 'vk', 'last.fm' => 'lastfm', 'youtu.be' => 'youtube', 'battle.net' => 'battlenet', 'blogspot.com' => 'blogger', 'play.google.com' => 'play', 'plus.google.com' => 'google-plus', 'photos.google.com' => 'googlephotos', 'chrome.google.com' => 'chrome', 'scholar.google.com' => 'google-scholar', 'feedburner.google.com' => 'mail', ) )includes/class-labtheme-companion-functions.php:636
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.