Action
rpress_post_customer_disconnect_user_id
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#
| Parameter | Type | Description |
|---|---|---|
$customer_id | int | The 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), inrpress_disconnect_customer_user_id()
See also#
Was this page helpful?
