English (United Kingdom)

apply_filters_ref_array( 'vikappointments_after_save_employee_settings', bool $status, array $data, JModel $model )

Fires after saving the employee configuration.


Description

This hook is triggered after updating the settings of an employee from the Employees Area in the front-end.


Parameters

$status

(bool)  True on success, false otherwise.

$data

(array)  The settings of the employee that have been saved.

$model

(JModel)  The model instance that handles the saving process.


Example

/**
 * Trigger hook to allow the plugins to make something after
 * saving the employee settings.
 *
 * @param  boolean  $status  True on success, false otherwise.
 * @param  mixed    $data    The saved record.
 * @param  JModel   $model   The model instance.
 */
add_filter('vikappointments_after_save_employee_settings', function($status, $data, $model)
{
    /**
     * @todo do something after saving the configuration of an employee
     */

    return $status;
}, 10, 3);

Changelog

Version Description
1.2.0 Added $model argument.
Removed $affected argument.
1.1.8 Introduced.
Last Update: 2021-10-08
Helpful?