Filter
rpress_update_payment_status_fields
On this page
Filters the fields passed to wp_update_post when a payment status changes.
Applied in RPRESS_Payment::update_status. The array holds ID, post_status and edit_date (the current local time).
Parameters#
| Parameter | Type | Description |
|---|---|---|
$update_fields | array | wp_update_post arguments: ID, post_status and edit_date. |
Return value#
array. The fields to pass to wp_update_post.
Example#
function my_update_payment_status_fields( $update_fields ) {
$update_fields['post_modified'] = current_time( 'mysql' );
return $update_fields;
}
add_filter( 'rpress_update_payment_status_fields', 'my_update_payment_status_fields' );
Source#
Applied in:
includes/payments/class-rpress-payment.php(line 1464), inRPRESS_Payment::update_status()
See also#
Was this page helpful?
