buycred_get_users_pending_payments

Description

This function will return all a given users currently pending buyCRED point purchases. The function will return an associative array sorted based on the point types you have enabled to sell.

This function is only available if the buyCRED add-on is enabled.

Available since version 1.7

Returns

(array) Returns an associative array of pending payment objects sorted by point type. Returns FALSE if no pending payment exists.

Parameters

Param Type Required Description
function buycred_get_users_pending_payments(
$user_id int Yes

The users numeric WordPress ID.

$point_type string No

Option to only return pending payments for a given point type.

) { ... }

Examples

No example found.