woocommerce_rest_insert_tax_class action-hook . WC 1.0
Fires after a tax class is created or updated via the REST API.
Usage
add_action( 'woocommerce_rest_insert_tax_class', 'action_function_name_1414', 10, 3 ); function action_function_name_1414( $tax_class, $request, $creating ){ // action... }
- $tax_class(stdClass)
- Data used to create the tax class.
- $request(WP_REST_Request)
- Request object.
- $creating(true|false)
- True when creating tax class, false when updating tax class.
Where the hook is called
woocommerce_rest_insert_tax_class
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php 188
do_action( 'woocommerce_rest_insert_tax_class', (object) $tax_class, $request, true );