WordPress.org

Support

Support » Plugins and Hacks » Get ID from subscribers posting comments?

Get ID from subscribers posting comments?

  • Hello!
    My first post here.

    I’m wondering how I should do to get the ID from the “users” comments. I got avatars that are linked to the ID of my registered users that’s why I need this.

    Something in the style of get_commentauthorinfo
    Feels like I’ve been looking everywhere.

    This is the code I use to show the avatar in the “User area” to the user currently logged in.

    <?php
    function show_avatar() {
    			global $userdata; get_currentuserinfo();
                            $avatarID .=  $userdata->ID;
    			avatarupload_display($avatarID);
    			}
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get ID from subscribers posting comments?’ is closed to new replies.
Skip to toolbar