Description
This function will trash a pending buyCRED point purchase payment. This means the buycred_payment
post type object will get trashed.
Returns
(bool) TRUE
if the post was trashed else FALSE
.
Parameters
Param | Type | Required | Description | |
---|---|---|---|---|
function buycred_trash_pending_payment( |
||||
$payment_id |
int or string | Yes | The pending payment public ID in string format or the WordPress post object ID. |
|
) { ... } |