buycred_trash_pending_payment

Description

This function will trash a pending buyCRED point purchase payment. This means the buycred_payment post type object will get trashed.

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

Available since version 1.7

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.

) { ... }

Examples

No example found.