Skip to content
Docs
Get RestroPress

Action

rpress_post_customer_disconnect_user_id

Updated
On this page

Fires after a customer has been disconnected from their linked WordPress user.

Runs at the end of rpress_disconnect_customer_user_id(), whether or not the update succeeded, before the AJAX JSON response or redirect. Check the customer record if you need the outcome.

Parameters#

ParameterTypeDescription
$customer_idintThe customer ID.

Example#

function my_after_disconnect( $customer_id ) {
	delete_transient( 'my_customer_summary_' . $customer_id );
}
add_action( 'rpress_post_customer_disconnect_user_id', 'my_after_disconnect', 10, 1 );

Source#

Fired from:

  • includes/admin/customers/customer-actions.php (line 692), in rpress_disconnect_customer_user_id()

See also#

Was this page helpful?