Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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