Service

The following hooks are provided for Service related events.

CancellationRequest

Executes as a cancellation request is being created.

Parameters

Variable Type Notes
user_id int
request_id int The id of the Cancellation Request.
pid int The id of the Cancellation Service/Product.
cancellation_date string The date of the Cancellation Request.
reason string Cancellation Reason.
type string Cancellation Type.
product_type string Cancellation Product/Service Type.

Response

No Response Supported.

Example Code

<?php
add_hook('CancellationRequest', 1, function($vars)
{
});

PreServiceEdit

Executes as the service is being saved, before any changes have been made.

Parameters

Variable Type Notes
user_id int
service_id int The id of the Service/Product.

Response

No Response Supported.

Example Code

<?php
add_hook('PreServiceEdit', 1, function($vars)
{
});

ServiceEdit

Executes when the Service has been edited. After the changes have been made.

Parameters

Variable Type Notes
user_id int
service_id int The id of the Service/Product.

Response

No Response Supported.

Example Code

<?php
add_hook('ServiceEdit', 1, function($vars)
{
});

ServiceDelete

Executes as the service is being deleted.

Parameters

Variable Type Notes
user_id int
service_id int The id of the Service/Product.

Response

No Response Supported.

Example Code

<?php
add_hook('ServiceDelete', 1, function($vars)
{
});