Viewing 1 replies (of 1 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hey.

    If you are looking to get a users points balance then this Codex documentation is a great place to start: https://codex.mycred.me/the-mycred-logic/.

    Basically you can get a users balance either by using get_user_meta which WordPress provides or use i.e. the mycred_get_users_cred function which myCRED provides:

    $point_type = 'mytype';
    $balance = mycred_get_users_cred( get_current_user_id(), $point_type );

    If you need to handle multiple balances you can also have a look at the mycred function.

Viewing 1 replies (of 1 total)
  • The topic ‘fetch assigned points for custom post’ is closed to new replies.