• Hi! I want to know if there is some built-in methods (maybe from a global Yith object) to get current user points in a variable. I’m considering buying pro version of this plugin, but I need some data to customize own views. It would be awesome to get exchange rates as well into the code. Thanks!

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

    (@yithemes)

    Hello,
    you can get the total points from the usermeta:

    $current_point = get_user_meta( $user_id, '_ywpar_user_total_points', 1 );

    About the conversion options you can use this

    YITH_WC_Points_Rewards_Earning()->get_conversion_option( )

Viewing 1 replies (of 1 total)
  • The topic ‘Raw value for current user points’ is closed to new replies.