Created
September 24, 2022 23:03
-
-
Save mikeott/cc67cd12e25c8f6d51d3bbe5a72a4e9f to your computer and use it in GitHub Desktop.
WordPress additional user profile fields
This file contains hidden or 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
/* Additional user profile fields */ | |
function extra_profile_details( $methods ) { | |
$methods['new_email'] = __( "New email", "wproject" ); | |
return $methods; | |
} | |
add_filter('user_contactmethods','extra_profile_details',10,1); |
This file contains hidden or 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
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment