woocommerce_api_customer_response

woocommerce_api_customer_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_customer_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-customers.php line 171
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
                'country'    => $customer->get_shipping_country(),
            ),
        );
     
        return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );
    }
     
    /**
     * Get the total number of customers
     *
     * @since 2.1
  • /includes/legacy/api/v2/class-wc-api-customers.php line 189
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
                'country'    => $customer->get_shipping_country(),
            ),
        );
     
        return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );
    }
     
    /**
     * Get the customer for the given email
     *
     * @since 2.1
  • /includes/legacy/api/v3/class-wc-api-customers.php line 190
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
                'country'    => $customer->get_shipping_country(),
            ),
        );
     
        return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );
    }
     
    /**
     * Get the customer for the given email
     *
     * @since 2.1