Actions / Filters

By woocommerce-sl, posted on August 2, 2017

Type Filter Arguments (array) $disabled_buttons (int) $licence_data_id (text) $domain Description This filter is designed to deactivate and block specific actions within the License Management interface, providing enhanced control and restriction over available functionalities. Example of usage The following sample code disable the Delete action. You can remove the Delete button using the following filter woo_sl/license_manage/disabled_buttons

Read more

By woocommerce-sl, posted on August 2, 2017

Type – Filter Arguments – 4 ( (intval)1, $order_id, $order_item_id, $key)

Read more

By woocommerce-sl, posted on August 2, 2017

Type – Filter Arguments – 3 ($data, $order_product, $order_id)

Read more

By woocommerce-sl, posted on August 2, 2017

Type – Filter Arguments – 2 ($_woo_sl_licensing_status, $order_item_id)

Read more

By woocommerce-sl, posted on August 2, 2017

Name woo_sl/get_order_licence_details Type Filter Arguments (array) $order_licence_details (int) $order_id Description Filter returned licence details for a product order.

Read more

By woocommerce-sl, posted on September 22, 2018

Type Action Arguments (integer) $product_id (string) $license_group_title Description Trigger when key extracted successfully from predefined keys list. Example of usage The following code send a message to admin when the number of keys is under 10

Read more

By woocommerce-sl, posted on May 3, 2022

Name woo_sl/cron/process_licence_expire_notifications Type Filter Arguments (array) $items Description The filter allows interaction with the result items, that need processed and send expire notifications. Example of usage The following code check for any orders that include product ID 128 and remove the expire notification email for that record.

Read more

By woocommerce-sl, posted on August 3, 2023

Name woo_sl/cron/schedule_interval Type Filter Arguments (text) $schedule_interval Description The filter allows interaction with the default cron schedule interval, which is set to hourly. Example of usage As default, the CRON process the expired licences every hour. If require a different interval, the current filter can be used. The following code changes the cron to run […]

Read more

By woocommerce-sl, posted on June 9, 2020

Name WOOSL/API/product_validation/granted_statuses Type Filter Arguments $granted_statuses Description Add custom statuses for granted product statuses Example of usage

Read more

By woocommerce-sl, posted on January 27, 2021

Type Filter Arguments (array) $response (array) $args (class) $api_object Description Allows filtering the API response by adding a custom response item on top of everything else. Observation The cache module need to be off for the filter to trigger. Example of usage Return additional response with a timestamp call, on top of the other API […]

Read more