You appear to be a bot. Output may be restricted
Description
Delete a payment note deletion with ajax
Usage
$void = edd_ajax_delete_payment_note();
Parameters
Returns
void
Source
File name: easy-digital-downloads/includes/admin/payments/actions.php
Lines:
1 to 13 of 13
function edd_ajax_delete_payment_note() { if( ! current_user_can( 'edit_shop_payments', $_POST['payment_id'] ) ) { wp_die( __( 'You do not have permission to edit this payment record', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); } if( edd_delete_payment_note( $_POST['note_id'], $_POST['payment_id'] ) ) { die( '1' ); } else { die( '-1' ); } }