mycred_new_transfer

Description

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.

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

Available since version 1.7.6

Returns

(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.

Parameters

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.

) { ... }

Examples

No example found.