woocommerce_api_update_customer_data
The WooCommerce woocommerce api update customer data hook.
Description
Parameters (3)
- 0. $id (unknown)
- The id.
- 1. $data (unknown)
- The data.
- 2. $customer (unknown)
- The customer.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_api_update_customer_data', $id, $data, $customer );
- The following example is for adding a hook callback.
- // define the woocommerce_api_update_customer_data callback
- function action_woocommerce_api_update_customer_data( $id, $data, $customer ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_api_update_customer_data', 'action_woocommerce_api_update_customer_data', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_api_update_customer_data', 'action_woocommerce_api_update_customer_data', 10, 3 );
Defined (2)
The action is defined in the following location(s).
- /includes/api/legacy/v3/class-wc-api-customers.php
- do_action( 'woocommerce_api_update_customer_data', $id, $data, $customer );
- /includes/api/legacy/v2/class-wc-api-customers.php
- do_action( 'woocommerce_api_update_customer_data', $id, $data, $customer );