Actions / Filters

By woocommerce-sl, posted on February 9, 2022

Type Filter Arguments (bool) $do_action (array) $args (class) $api_object Description Allows bypassing the API do action procedure. The filter should be used in conjunction with WOOSL/API_call/early_response or WOOSL/API_call/response to provide custom responses. Observation The cache module needs to be off for the filter to trigger. Example of usage Ignore the internal API status-check action.

Read more

By woocommerce-sl, posted on February 22, 2022

Type Filter Arguments (array) $response (array) $args Description Add additional data to the API current response block. Observation The cache module needs to be off for the filter to trigger. Or ensure the custom code is placed within the /wp-content/mu-plugins/woosl-custom.php file Example of usage Add the customer full name to the response.

Read more

By woocommerce-sl, posted on February 22, 2022

Type Filter Arguments (array) $filtered_machine_hash (array) $machine_hash Description Apply custom filtering for the customer machine hash. This can be a domain name, a unique ID etc. Use the filter to avoid the core further processing this variable value. Observation The cache module needs to be off for the filter to trigger. Or ensure the custom […]

Read more

By woocommerce-sl, posted on August 2, 2017

Type Filter Arguments (array) $response (array) $args (class) $api_object Description Allow to filter the API response. Observation The cache module need to be off for the filter to trigger. Example of usage Return additional custom field on key activation. The following example returns an additional field with the customer name.

Read more

By woocommerce-sl, posted on August 2, 2017

Type Filter Arguments (array) $args (class) $api_object Description Allows filtering the argument data passed through the API. Observation The cache module needs to be off for the filter to trigger. Example of usage Add additional argument.

Read more