EDD::edd_update_payment_status( $payment_id,  $new_status,  $old_status )


Source

File: classes/EDD.php

	public function edd_update_payment_status( $payment_id, $new_status, $old_status ) {
		if ( $new_status === 'publish' ) {
			$new_status = 'completed';
		}

		global $wpdb;

		$wpdb->update( $wpdb->dozent_earnings, [ 'order_status' => $new_status ], [ 'order_id' => $payment_id ] );
	}