Special deal!
SAVE UP TO 50% OFF!
Grab now

Amelia WP Hooks for Settings

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

Get settings

amelia_get_settings_filter

Users can use this filter to change the settings returned for the backend display

Type: filter

Example:

function example($settings)
{
    return $settings;
}

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

amelia_get_settings

Users can do an action before the settings are retuned for backend display

Type: action

Example:

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

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

Update settings

amelia_before_settings_updated_filter

Users can use this filter to change the settings before they are saved

Type: filter

Example:

function example($settings)
{
    return $settings;
}

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

amelia_before_settings_updated

Users can do an action before the settings are saved

Type: action

Example:

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

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

amelia_after_settings_updated

Users can do an action after the settings are saved

Type: action

Example:

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

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

amelia/curlopt_ssl_verifypeer

Users can pass the SSL verification when activating the Amelia plugin if the SSL certificate is not set or if it has expired.

Type: filter

Example:

function example()
{
   return 0; 
} 

add_filter('amelia/curlopt_ssl_verifypeer', 'example', 10, 2);

amelia_scripts_loaded

Users can perform actions after all the scripts that Amelia uses are loaded (Paypal, Razor Pay, Google maps API…)

Type: action

Example:

function example_callback()
{
    // do action
}

add_action('ameliaScriptsLoaded', 'example_callback', 10, 0);