Skip to content

Instantly share code, notes, and snippets.

@cryptexvinci
Last active February 22, 2021 11:30
Show Gist options
  • Save cryptexvinci/f4729185a8b4e553e6d58bd6a0410973 to your computer and use it in GitHub Desktop.
Save cryptexvinci/f4729185a8b4e553e6d58bd6a0410973 to your computer and use it in GitHub Desktop.
Ultimate member - Display User ID below Username in Profile Page.
<?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 );
@Lingaas
Copy link

Lingaas commented Nov 16, 2019

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

@ukaleem
Copy link

ukaleem commented Feb 22, 2021

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