WordPress.org

Ready to get started?Download WordPress

Forums

get_usermeta deprecated by get_user_meta not working (1 post)

  1. BrenFM
    Member
    Posted 3 years ago #

    Howdy!

    Having issues with get_user_meta() function. This doesn't appear to work at all in my WP 3.2.1 install. The following returns absolutely nothing:

    echo get_user_meta(15,'display_name',true);

    Whereas this:

    echo get_usermeta(15,'display_name',true);

    returns the display name of user 15. My site is working right now but I'm a little concerned about functionality going forward as evidently according to the codex, get_usermeta has been deprecated in v3.0+

    My code is in the functions.php file of my theme.

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic