Created
October 25, 2016 03:31
-
-
Save BeardedGinger/75fedeb7a8f9ab9b617a68a5d62f4792 to your computer and use it in GitHub Desktop.
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( 'user_contactmethods', 'limecuda_user_contactmethods', 10, 2 ); | |
/** | |
* Filter the Contact Methods to include Github | |
* | |
* @since 1.1.0 | |
* @param array $methods The registered Contact methods. | |
* @param array $user The current user object. | |
*/ | |
function limecuda_user_contactmethods( $methods, $user ) { | |
$methods['github'] = 'Github'; | |
return $methods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment