Skip to content
Docs
Get RestroPress

Action

rpress_post_delete_payment_note

Updated
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#

ParameterTypeDescription
$comment_idintThe note (comment) ID.
$payment_idintThe 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), in rpress_delete_payment_note()

See also#

Was this page helpful?