Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created October 25, 2016 03:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeardedGinger/75fedeb7a8f9ab9b617a68a5d62f4792 to your computer and use it in GitHub Desktop.
Save BeardedGinger/75fedeb7a8f9ab9b617a68a5d62f4792 to your computer and use it in GitHub Desktop.
<?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