Skip to content
Docs
Get RestroPress

Action

rpress_customer_post_update

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

ParameterTypeDescription
$updatedboolWhether the update succeeded.
$customer_idintThe customer ID.
$dataarraySanitized 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), in RPRESS_Customer::update()

See also#

Was this page helpful?