Use a hook or filter, or overwrite this Gamipress function?

Turns out it was as simple as adding this line to my function: $current_total_points = gamipress_get_user_points( $user_id, $points_type); and then passing $points – $current_total_points to Gamipress’s insert user earnings function. function ofc_insert_user_earning_on_import_points_tool( $user_id, $points, $points_type, $args ) { if( ! defined( ‘DOING_AJAX’ ) ) return; if( ! DOING_AJAX ) return; if( ! isset( $_REQUEST[‘action’] ) … Read more