You appear to be a bot. Output may be restricted
Description
Updates a payment status.
Usage
$bool = edd_update_payment_status( $payment_id, $new_status );
Parameters
- $payment_id
- ( int ) optional – Payment ID
- $new_status
- ( string ) optional default: publish – New Payment Status (default: publish)
Returns
bool If the payment was successfully updated
Source
File name: easy-digital-downloads/includes/payments/functions.php
Lines:
1 to 15 of 15
function edd_update_payment_status( $payment_id = 0, $new_status = 'publish' ) { $updated = false; $payment = new EDD_Payment( $payment_id ); if( $payment && $payment->ID > 0 ) { $payment->status = $new_status; $updated = $payment->save(); } return $updated; }