Created
January 9, 2019 00:03
-
-
Save KaineLabs/bd1426c95e52ba5daaa09b1e5e19945c to your computer and use it in GitHub Desktop.
Change Profile Header Full Name with Username
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 | |
function yzc_user_profile_username( $name ) { | |
if ( ! bp_is_user() ) { | |
return $name; | |
} | |
return yz_data( 'user_login' ); | |
} | |
add_filter( 'yz_user_profile_username', 'yzc_user_profile_username' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment