Filters

Articles

Cache Expiry Filters

When caching is enabled. The cache expiry time can be changed by adding filters. The filters in the table below are the filters that can be used depending on which expiry time needs to be changed. Default values for all this filters is 12 hours but converted int an equivalent number of seconds using 12…

slswc_license_table_columns

Filter the license table columns for the licenses table in admin. Parameters: array $columns The current list of column for license table. Example Usage: Remove purchase_date column

slswc_get_licenses

Filters the license before being displayed on the licenses table. Parameters: array $all_licenses All the licenses retrieved to be displayed on the table. Example usage: Access and modify properties of a license.

slswc_all_licenses

Allow to filter licenses retrieved from database. array $all_licenses The formated list of licenses.array $licenses The raw licenses retrieved from database. Example usage:

slswc_license_type_defaults

Filter default license types. Allows the default license types to be modified to add or remove license types. array $license_type_defaults The default license types to be filtered. Example usage:

slswc_license_status_types

Filter license status types. Allow to change the license status types. Parameters:array $status_types The current list of status types. Example Usage:

slswc_get_license_types

Filter license types retrieved from database. This will be the defaults if there are no custom license types added. Parameters:array $license_types The license types retrieved from the database. Example usage:

slswc_email_reminder_length_defaults

Filters email reminder lengths. Filters the default email reminder lengths. Parameters:array $default_lengths The default email reminder lengths. Example usage:

slswc_software_type_fields

Filter the software types available. Allows to add or remove software types from the defaults. Parameters: array $software_types The current list of software types. Example usage: