English (United Kingdom)
Knowledge Base  >  Vik Appointments  >  Hooks  >  Customer  >  Setup Details

apply_filters( 'vikappointments_setup_customer_details', bool $status, object $customer, object $row )

Fires while setting up the customer details.


Description

External plugins can use this hook to manipulate the object holding the details of the customer. Useful to inject all the additional data fetched with the manipulation of the query. 


Parameters

$status

(bool)  True on success, false otherwise.

$customer

(object)  The object holding the customer details.

$row

(object)  The row fetched from the database.


Example

/**
 * External plugins can use this event to manipulate the object holding
 * the details of the customer. Useful to inject all the additional data
 * fetched with the manipulation of the query.
 *
 * @param  boolean  $status    True on success, false otherwise.
 * @param  object   $customer  The customer details.
 * @param  object   $row       The row fetched from the database.
 */
add_filter('vikappointments_setup_customer_details', function($status, $customer, $row)
{
    /**
     * @todo it is possible to load further details here
     */

    return $status;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-10-06
Helpful?
See Also:

This website uses cookies

This website uses cookies and similar technologies. Some of these technologies are necessary for the proper functioning of the website (Essential). Other technologies are used to evaluate user behavior (Analysis), to integrate external media or for advertising purposes. If you agree, these technologies are activated. For details, please refer to the privacy policy. From this same page you can also update/revoke your consent. If you do not give your consent, only cookies with essential functions will be activated.

We use technologies from the USA on our website. If you give your consent, you therefore consent at the same time to your data being transferred to the USA. We would like to point out that the USA does not have a level of data protection comparable to that of the EU and that any US company can be obliged by state authorities to hand over your data without you having any effective legal protection against this.