users - get_user_meta an ID for multiple functions

i created an frontend profile for users, where they can add some informations to there profile. All the infos are stored

i created an frontend profile for users, where they can add some informations to there profile. All the infos are stored in the usermeta. To show these informations on the frontend profile of the user i created multiple shortcodes (functions)

For every single function it does the same thing on startup. It searches for the user profile id and then fetches the informations from that user.

$profile_id = um_profile_id; // get the acutal profile id
um_fetch_user( $profile_id ); // fetch the user data

So all of these functions start with the code above and i asked myself if there is a better way to do this?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745073232a4609680.html

相关推荐

  • users - get_user_meta an ID for multiple functions

    i created an frontend profile for users, where they can add some informations to there profile. All the infos are stored

    20小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信