Don’t miss our Special Offer!

Up to 50% off
Grab Amelia
Grab Amelia

Amelia WP Hooks for Timeslots

Content

Please note that using hooks requires a certain level of programming skills and included support refers only to advice.

Get timeslots

amelia_before_get_timeslots_filter

Users can use this filter to change the properties used to retrieve timeslots.

Type: filter

Example:

function example($props)
{
    // change properties
    return $props;
}

add_filter('amelia_before_get_timeslots_filter', 'example', 10, 1);

amelia_before_get_timeslots

Users can use this hook to do an action before the timeslots are calculated.

Type: action

Example:

function example($props)
{
    // do action
}

add_action('amelia_before_get_timeslots', 'example', 10, 1);

amelia_get_timeslots_filter

Users can use this filter to change the timeslots retrieved.

Type: filter

Example:

function example($resultData, $props)
{
    // change data
    return $resultData;
}

add_filter('amelia_get_timeslots_filter', 'example', 10, 2);

amelia_get_timeslots

Users can use this hook to do an action after the timeslots are calculated.

Type: action

Example:

function example($resultData, $props)
{
    // do action
}

add_action('amelia_get_timeslots', 'example', 10, 2);