Service

The following hooks are provided for Service related events.

CancellationRequest

Executes as a cancellation request is being created.

Parameters

VariableTypeNotes
user_idint
request_idintThe id of the Cancellation Request.
pidintThe id of the Cancellation Service/Product.
cancellation_datestringThe date of the Cancellation Request.
reasonstringCancellation Reason.
typestringCancellation Type.
product_typestringCancellation 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

VariableTypeNotes
user_idint
service_idintThe 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

VariableTypeNotes
user_idint
service_idintThe 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

VariableTypeNotes
user_idint
service_idintThe id of the Service/Product.

Response

No Response Supported.

Example Code

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