Last active
February 26, 2018 17:26
-
-
Save albionselimaj/fdea4cd8d1da6265392d493af48b352a to your computer and use it in GitHub Desktop.
Modify Social Networks field (Add WhatsApp link)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'mylisting\links-list', function( $links ) { | |
// Add new link | |
$links['WhatsApp'] = [ | |
'name' => 'WhatsApp', | |
'key' => 'WhatsApp', | |
'icon' => 'fa fa-whatsapp', | |
'color' => '#128c7e', | |
]; | |
// Remove a link | |
unset( $links['Pinterest'] ); | |
unset( $links['DeviantArt'] ); | |
return $links; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment