Customer Helper Functions
The helper you can use to create, delete, get and update Customer details.
function add_customer($customer) {.....}
Supported hooks
// The filter callback function is based on the filter.
add_filter( ‘before_add_customer’, ‘before_add_customer_callback_fun’, 10, 1 );
function before_add_customer_callback_fun($customer) {
// code
}// The filter callback function is based on the filter.
add_filter( ‘should_add_customer’, ‘should_add_customer_callback_fun’, 10, 1 );
function should_add_customer_callback_fun($customer) {
// code
}Param
Type
Required
Default
Description
function get_customer($customer_id) {....}
Supported hooks
Param
Type
Required
Default
Description
function get_customers($filter) {.....}
Param
Type
Required
Default
Description
function update_customers($customer, $customer_id) {....}
Param
Type
Required
Default
Description
function delete_customer($customer_id) {.....}
Param
Type
Required
Default
Description
Last updated