Last active
February 22, 2021 11:30
-
-
Save cryptexvinci/f4729185a8b4e553e6d58bd6a0410973 to your computer and use it in GitHub Desktop.
Ultimate member - Display User ID below Username in Profile Page.
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
<?php | |
/** | |
* Ultimate member - Display User ID below Username in Profile Page. | |
* @link https://wordpress.org/plugins/ultimate-member/ | |
*/ | |
function custom_display_id_profile_page(){ | |
echo '<p>'; | |
esc_html_e( 'Membership ID: ', 'theme-name'); | |
echo um_profile_id(); | |
echo '</p>'; | |
} | |
add_action( 'um_after_profile_header_name_args', 'custom_display_id_profile_page', 10, 1 ); |
I would also like what @KwainF are looking for.. Display user ID, but a random number, JUST visible for the logged in member.
Example "ID-5723#" / "#2234" / "Dwduje2" n so on, either prefix or random.
Are it something you could share a code on? :D
Im looking for a way to Generate A unique (PUBLIC_KEY) For every user, And i want to use this PUBLiC_KEY as Rafferance of the new user if new your signed with A unique public key of another user, he will be marked as the reference to the new user on this profile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What exactly does this do? im looking for a way to generate a unique account number on every users profile form upon registration would this help? please say yes ;-;