This function attempts to process a transfer request that has been submitted by a transfer form. If no transfer form is used and you need to process a new transfer artificially, make sure you simulate a form submission by providing an array of form names and values.
(bool | string | array) Returns either an error code if the request could not be processed, FALSE
if the request was valid but the transaction could not be completed else an array of transfer results.
Param | Type | Required | Description | |
---|---|---|---|---|
function mycred_new_transfer( |
||||
$request |
array | Yes | The transfer request array. |
|
$posted |
array | Yes | An array of the transfer form that was submitted. |
|
) { ... } |