Viewing 4 replies - 1 through 4 (of 4 total)
  • I can create a coded example on how to make this happen. I just have couple questions.

    1. How/where would you like this to appear? Do you want it added in the header below the name on profile? Do you want it displayed at the top of the account page?
    2. Do you want other users to see the ID or just the owner of the profile?
    Thread Starter anisclo

    (@anisclo)

    Hello @suiteplugins
    1. Below the name
    2. All the users can see the ID

    You can use this code to add the ID into the Profile and Account section

    
    function um_display_user_id_callback() {
    	echo um_user( 'ID' );
    }
    add_action( 'um_after_profile_name_inline', 'um_display_user_id_callback' ); // Adds the ID next to name
    add_action( 'um_before_form', 'um_display_user_id_callback' ); // Above Account page
    
    Thread Starter anisclo

    (@anisclo)

    Perfect!! It works. Thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show User ID’ is closed to new replies.