woocommerce_api_create_tax_data

woocommerce_api_create_tax_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_create_tax_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-taxes.php line 192
    			if ( ! current_user_can( 'manage_woocommerce' ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_user_cannot_create_tax', __( 'You do not have permission to create tax rates', 'woocommerce' ), 401 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_create_tax_data', $data['tax'], $this );
    
    			$tax_data = array(
    				'tax_rate_country'  => '',
    				'tax_rate_state'    => '',
    				'tax_rate'          => '',
    				'tax_rate_name'     => '',