Action
rpress_customer_post_update
On this page
Fires after a customer record is updated.
Fires at the end of RPRESS_Customer::update(), whether or not the database update succeeded. Check the first argument to see if the change was saved.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$updated | bool | Whether the update succeeded. |
$customer_id | int | The customer ID. |
$data | array | Sanitized column values that were passed to the update. |
Example#
function my_customer_post_update( $updated, $customer_id, $data ) {
if ( $updated ) {
delete_transient( 'my_customer_stats_' . $customer_id );
}
}
add_action( 'rpress_customer_post_update', 'my_customer_post_update', 10, 3 );
Source#
Fired from:
includes/class-rpress-customer.php(line 234), inRPRESS_Customer::update()
See also#
Was this page helpful?
