Action
rpress_post_delete_payment_note
On this page
Fires after a payment note has been deleted.
Runs in rpress_delete_payment_note() immediately after wp_delete_comment() has permanently removed the note. It fires whether or not the deletion succeeded.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$comment_id | int | The note (comment) ID. |
$payment_id | int | The payment (order) ID. |
Example#
add_action( 'rpress_post_delete_payment_note', 'my_after_note_deletion', 10, 2 );
function my_after_note_deletion( $comment_id, $payment_id ) {
delete_transient( 'my_order_notes_' . $payment_id );
}
Source#
Fired from:
includes/payments/functions.php(line 1746), inrpress_delete_payment_note()
See also#
Was this page helpful?
