jetpack_social_menu_social_links_icons

Returns an array of supported social links (URL and icon name).

Description

(array) jetpack_social_menu_social_links_icons(); 

Returns (array)

$social_links_icons


Usage

  1. if ( !function_exists( 'jetpack_social_menu_social_links_icons' ) ) { 
  2. require_once '/modules/theme-tools/social-menu/icon-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_social_menu_social_links_icons(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/theme-tools/social-menu/icon-functions.php  
  1. function jetpack_social_menu_social_links_icons() { 
  2. // Supported social links icons. 
  3. $social_links_icons = array( 
  4. 'amazon.cn' => 'amazon',  
  5. 'amazon.in' => 'amazon',  
  6. 'amazon.fr' => 'amazon',  
  7. 'amazon.de' => 'amazon',  
  8. 'amazon.it' => 'amazon',  
  9. 'amazon.nl' => 'amazon',  
  10. 'amazon.es' => 'amazon',  
  11. 'amazon.co' => 'amazon',  
  12. 'amazon.ca' => 'amazon',  
  13. 'amazon.com' => 'amazon',  
  14. 'apple.com' => 'apple',  
  15. 'itunes.com' => 'apple',  
  16. 'bandcamp.com' => 'bandcamp',  
  17. 'behance.net' => 'behance',  
  18. 'codepen.io' => 'codepen',  
  19. 'deviantart.com' => 'deviantart',  
  20. 'digg.com' => 'digg',  
  21. 'dribbble.com' => 'dribbble',  
  22. 'dropbox.com' => 'dropbox',  
  23. 'facebook.com' => 'facebook',  
  24. '/feed/' => 'feed',  
  25. 'flickr.com' => 'flickr',  
  26. 'foursquare.com' => 'foursquare',  
  27. 'plus.google.com' => 'google-plus',  
  28. 'google.com' => 'google',  
  29. 'github.com' => 'github',  
  30. 'instagram.com' => 'instagram',  
  31. 'linkedin.com' => 'linkedin',  
  32. 'mailto:' => 'mail',  
  33. 'medium.com' => 'medium',  
  34. 'pinterest.com' => 'pinterest',  
  35. 'getpocket.com' => 'pocket',  
  36. 'reddit.com' => 'reddit',  
  37. 'skype.com' => 'skype',  
  38. 'skype:' => 'skype',  
  39. 'slideshare.net' => 'slideshare',  
  40. 'snapchat.com' => 'snapchat',  
  41. 'soundcloud.com' => 'soundcloud',  
  42. 'spotify.com' => 'spotify',  
  43. 'stumbleupon.com' => 'stumbleupon',  
  44. 'tumblr.com' => 'tumblr',  
  45. 'twitch.tv' => 'twitch',  
  46. 'twitter.com' => 'twitter',  
  47. 'vimeo.com' => 'vimeo',  
  48. 'vk.com' => 'vk',  
  49. 'wordpress.org' => 'wordpress',  
  50. 'wordpress.com' => 'wordpress',  
  51. 'yelp.com' => 'yelp',  
  52. 'youtube.com' => 'youtube',  
  53. ); 
  54.  
  55. return $social_links_icons;