woocommerce_rest_insert_tax, $tax, $request, false

woocommerce_rest_insert_tax, $tax, $request, false

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_rest_insert_tax, $tax, $request, false') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php line 489
    		 * @param stdClass        $tax       Data used to create the tax.
    		 * @param WP_REST_Request $request   Request object.
    		 * @param boolean         $creating  True when creating tax, false when updating tax.
    		 */
    		do_action( 'woocommerce_rest_insert_tax', $tax, $request, false );
    
    		$request->set_param( 'context', 'edit' );
    		$response = $this->prepare_item_for_response( $tax, $request );
    		$response = rest_ensure_response( $response );
    
    		return $response;