Advertisement
GochiSiyan

unset backend social

Oct 11th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. add_action('user_contactmethods', function ($socials) {
  2. $unsets = array(
  3. 'facebook' => 'Facebook',
  4. 'twitter' => 'Twitter',
  5. 'linkedin' => 'Linkedin',
  6. 'pinterest' => 'Pinterest',
  7. 'behance' => 'Behance',
  8. 'github' => 'Github',
  9. 'flickr' => 'Flickr',
  10. 'tumblr' => 'Tumblr',
  11. 'dribbble' => 'Dribbble',
  12. 'soundcloud' => 'Soundcloud',
  13. 'instagram' => 'Instagram',
  14. 'vimeo' => 'Vimeo',
  15. 'youtube' => 'Youtube',
  16. 'reddit' => 'Reddit',
  17. 'vk' => 'Vk',
  18. 'weibo' => 'Weibo',
  19. 'rss' => 'Rss',
  20. );
  21.  
  22. foreach ( $unsets as $unset => $value ) {
  23. unset($socials[$unset]);
  24. }
  25.  
  26. return $socials;
  27. },999);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement