Advanced_Coupons_Helpers::get_current_balance_of_the_customer( $user_id )

Get customer’s current store credit balance


Source

File: src/integrations/advanced-coupons/helpers/advanced-coupons-helpers.php

	public function get_current_balance_of_the_customer( $user_id ) {
		if ( empty( $user_id ) || 0 === $user_id ) {
			return 0;
		}

		return apply_filters( 'acfw_filter_amount', \ACFWF()->Store_Credits_Calculate->get_customer_balance( $user_id ) );
	}