Digital License Manager 2.0.4 has 45 actions and 114 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Digital License Manager fires an action
add_action( 'dlm_licenses_generated_on_order', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Digital License Manager is about to use
add_filter( 'dlm_compatibility_layer_for_lmfwc', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Compatibility layer for License Manager for WooCommerce */ apply_filters( 'dlm_compatibility_layer_for_lmfwc', false ); -
/** * Filter the formatted license data for Vue admin responses. */ apply_filters( 'dlm_admin_format_license', $data, $license, $include_key ); -
/** * Filters the shared DLM product brand. */ apply_filters( 'dlm_admin_workspace_brand', $default_brand, $active_area ); -
/** * This file comes from the "Digital License Manager" WordPress plugin. * https://darkog.com/p/digital-license-manager/ */ apply_filters( 'dlm_block_licenses_table_key', null ); -
/** * Determines the generator PHP class, this class should implement * AbstractGenerator. */ apply_filters( 'dlm_generator_class', StandardGenerator::class, $generator, $order, $product ); -
/** * Add option to developers to add their own data and skip our data generation * process */ apply_filters( 'dlm_license_certification_prefilter_data', $data, $license ); -
/** * Filter the columns available to license CSV exports. */ apply_filters( 'dlm_license_export_columns', $columns ); -
/** * Filter a formatted license CSV row before selected columns are written. */ apply_filters( 'dlm_license_export_row', $row, $license ); -
/** * Fire an action as a final step, to allow the developers to hook into. */ do_action_deprecated( 'dlm_licenses_generated_on_order', array( array( 'orderId' => $order->get_id(), 'licenses' => $orderedLicenses ) ), '1.8.0', 'dlm_order_licenses_created' ); -
/** * Filter the licenses queried in the MyAccount. */ apply_filters( 'dlm_myaccount_licenses_query', array() ); -
/** * Fires when the admin-triggered database repair runs. Extensions (e.g. DLM * Pro) should hook in here and recreate their own tables using idempotent * dbDelta / CREATE TABLE IF NOT EXISTS statements. */ do_action( 'dlm_repair_database_tables' ); -
/** * Allow developers to skip the whole process for specific order. */ apply_filters_deprecated( 'dlm_skip_licenses_generation_for_order', [ false, $orderId ], '1.8.0', 'dlm_woocommerce_order_license_creation_skip' ); -
/** * Allow developers to skip the whole process for specific order. */ apply_filters_deprecated( 'dlm_skip_licenses_generation_for_order_product', array( false, $orderId, $product->get_id(), $orderItem ), '1.8.0', 'dlm_woocommerce_order_licenses_creation_for_product' ); -
apply_filters( 'dlm_licenses_table_heading', __( 'Your license(s)', 'digital-license-manager' ) ); -
apply_filters( 'dlm_licenses_table_valid_until', __( 'Valid until', 'digital-license-manager' ) ); -
do_action( 'dlm_license_saved', $license, null, $data ); -
do_action( 'dlm_settings_sanitized', $settings ); -
apply_filters( 'dlm_tools', $tools ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
apply_filters( 'dlm_client_ip', $candidate, $header ); -
apply_filters( 'dlm_dropdown_search_post_type', null, $type, $term, $page, $limit ); -
apply_filters( 'dlm_files_dir', trailingslashit( $uploads['basedir'] ) . 'dlm-files' ); -
apply_filters( 'dlm_license_pre_create_params', $queryData ); -
apply_filters( 'dlm_migrator_lmfw_batch_size', 25 ); -
do_action( 'dlm_myaccount_licenses_after_heading' ); -
do_action( 'dlm_object_updated', $new_object, $old_object, $this->dataTable, $this->dataModel ); -
apply_filters( 'dlm_template_args_email_order_license_notice', array() ); -
apply_filters( 'dlm_template_args_email_order_licenses', array() ); -
apply_filters( 'dlm_template_args_emails_email_order_details', array() ); -
apply_filters( 'dlm_template_args_emails_order_license_keys', array() ); -
apply_filters( "{$section}_defaults", $settings ); -
apply_filters( 'dlm_admin_deactivate_feedback', true, __FILE__ ); -
apply_filters( 'dlm_admin_get_order_licenses_query', array( 'order_id' => $order->get_id(), 'product_id' => $product->get_id(), 'platform' => LicensePlatform::WOOCOMMERCE, ), $order_item_product, $product ); -
apply_filters( 'dlm_admin_localized_data', [ 'i18n' => $strings, 'workspace' => Workspace::get_data( 'licenses' ), 'nonce' => wp_create_nonce( 'dlm_admin' ), 'dropdownNonce' => wp_create_nonce( 'dlm_dropdown_search' ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'restUrl' => rest_url( 'dlm/v1/' ), 'adminUrl' => admin_url(), 'pluginUrl' => defined( 'DLM_PLUGIN_URL' ) ? DLM_PLUGIN_URL : '', 'version' => defined( 'DLM_PLUGIN_VERSION' ) ? D... ); -
do_action( 'dlm_before_product_save', $postId, $product ); -
do_action( 'dlm_before_variable_product_save', $variationId, $i, $variation ); -
apply_filters( 'dlm_block_license_table_actions', false, $records ); -
do_action( 'dlm_block_license_table_actions_content', $record ); -
do_action( 'dlm_block_license_table_after_license_column_body', $records ); -
do_action( 'dlm_block_license_table_after_license_column_head' ); -
apply_filters( 'dlm_block_license_table_status', null, $records ); -
apply_filters( 'dlm_block_licenses_table_query', $query ); -
apply_filters( 'dlm_block_licenses_table_settings', $this->blocks['licenses-table']['settings'] ); -
do_action( 'dlm_boot' ); -
apply_filters( 'dlm_commands', $this->commands ); -
apply_filters( 'dlm_core_caps', $capabilities ); -
apply_filters( 'dlm_default_settings', $default_settings ); -
apply_filters( 'dlm_default_woocommerce_settings', $default_settings ); -
apply_filters( 'dlm_dropdown_search_multiple', array( 'records' => array(), 'more' => $more ), $type, $ids, $args ); -
apply_filters( 'dlm_dropdown_search_query_default_status', array( 'publish' ), $type ); -
apply_filters( 'dlm_dropdown_search_single', [], $type, $term ); -
apply_filters( 'dlm_dropdown_searchable_post_types', array() ); -
do_action( 'dlm_email_customer_deliver_licenses', $order->get_id(), $order ); -
do_action( 'dlm_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'dlm_email_order_licenses', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'dlm_email_order_licenses_row_actions', array(), $license, $licenseKey, $data ); -
apply_filters( 'dlm_emails_license_key_markup', null, $license, $mode ); -
do_action( 'dlm_enqueue_scripts', $this->version ); -
do_action_deprecated( 'dlm_generated_licenses_saved', [ $orderId, [], $params['complete'] ], '1.6.1', 'dlm_licenses_created' ); -
apply_filters( 'dlm_get_customer_licenses_order_id', $orderId, $productId ); -
apply_filters( 'dlm_global_product_fields', array(), $product ); -
do_action( 'dlm_init', $this ); -
apply_filters( 'dlm_is_order_page', false, $hook ); -
apply_filters( 'dlm_is_product_page', false, $hook ); -
apply_filters( 'dlm_kses_allowed_html_tags', array( 'a' => array( 'href' => true, 'title' => true, 'target' => true, 'class' => true, 'data-id' => true ), 'abbr' => array( 'title' => true, ), 'acronym' => array( 'title' => true, ), 'b' => array(), 'blockquote' => array( 'cite' => true, ), 'cite' => array(), 'code' => array(), 'del' => array( 'datetime' => true, ), 'em' => array(), 'i' => array(), 'q' => array( 'cite' => true, ), 's' => ar... ); -
apply_filters( 'dlm_license_certification_data', $data, $license ); -
apply_filters( 'dlm_license_certification_logo_width', 300 ); -
apply_filters( 'dlm_license_certification_title', esc_html__( 'License Certificate', 'digital-license-manager' ) ); -
do_action( 'dlm_license_created', $license, $data ); -
apply_filters( 'dlm_license_key_markup', $record->getDecryptedLicenseKey(), $record ); -
apply_filters( 'dlm_license_product_name', $name, $product_id ); -
apply_filters( 'dlm_license_stock_query', $query_args, $product, $params ); -
do_action( 'dlm_license_updated', $newLicense, $oldLicense, $data ); -
do_action( 'dlm_licenses_created', $result, [ 'order_id' => $orderId, 'complete' => isset( $params['complete'] ) ? $params['complete'] : false, ] ); -
apply_filters( 'dlm_locate_order_user_id', $userId, $orderId ); -
apply_filters( 'dlm_log_dump_callback', 'print_r' ); -
do_action( 'dlm_migration_failed', $result, $fileVersion, $fileName ); -
apply_filters( 'dlm_migrator_lmfw_undo_batch_size', 50 ); -
apply_filters( 'dlm_mock_is_plugin_active', false, $plugin ); -
apply_filters( 'dlm_myaccount_endpoint_title', $title, $in_the_loop ); -
do_action( 'dlm_myaccount_handle_action', $action ); -
do_action( "dlm_myaccount_handle_action_{$action}" ); -
apply_filters( 'dlm_myaccount_license_activation_row_action_params', [ 'class' => [ 'button' ] ], $rowAction, $license, $activation, $order, $product ); -
apply_filters( 'dlm_myaccount_license_activation_row_actions', array(), $license, $order, $product ); -
apply_filters( 'dlm_myaccount_license_key_markup', null, $license ); -
do_action( 'dlm_myaccount_licenses_index_page_end', $licenses ); -
do_action( 'dlm_myaccount_licenses_index_page_start', $licenses ); -
apply_filters_deprecated( 'dlm_myaccount_licenses_keys_row_actions', array( $actions, $license, $licenseKey, $data ), '1.7.4', 'dlm_myaccount_order_licenses_row_actions' ); -
apply_filters( 'dlm_myaccount_licenses_row_actions', $actions, $license, $decrypted, $order ); -
apply_filters( 'dlm_myaccount_licenses_should_obfuscate', $should_obfuscate, $license ); -
do_action( 'dlm_myaccount_licenses_single_page_content', $license ); -
do_action( 'dlm_myaccount_licenses_single_page_end', $license, $order, $product, $date_format, $license_key ); -
do_action( 'dlm_myaccount_licenses_single_page_start', $license, $order, $product, $date_format, $license_key ); -
do_action( 'dlm_myaccount_licenses_single_page_table_details', $license, $order, $product, $date_format, $license_key ); -
apply_filters( 'dlm_myaccount_manual_activation_button', esc_html__( 'Activate', 'digital-license-manager' ) ); -
apply_filters( 'dlm_myaccount_order_licenses_row_actions', array(), $license, $licenseKey, $data ); -
apply_filters( 'dlm_myaccount_processing_endpoint_url', add_query_arg( [ 'dlm_action_handler' => 1 ], trailingslashit( home_url() ) ) ); -
apply_filters( 'dlm_myaccount_rewrite_endpoints', [ 'digital-licenses' => EP_ROOT | EP_PAGES, ] ); -
do_action( 'dlm_myaccount_single_page', $license, $license ); -
do_action( 'dlm_myaccount_single_page_start', $license, $order, $product, $date_format, $license_key ); -
apply_filters( 'dlm_myaccount_whitelisted_actions', array() ); -
do_action( 'dlm_object_created', $created, $this->dataTable, $this->dataModel ); -
do_action( 'dlm_object_deleted', $deleted_object, $this->dataTable, $this->dataModel ); -
do_action( 'dlm_order_item_refund_processed', $licenses, $refund, $order, $refundedItem, $refundItem, LicensePrivateStatus::DISABLED ); -
apply_filters( 'dlm_order_licensed_product', $productId, $item, $item->get_order() ); -
apply_filters( 'dlm_order_refund_licenses', $licenses, $refund, $order, $refundedItem, $refundItem ); -
apply_filters( 'dlm_order_refund_licenses_pre_filter', null, $refund, $order, $refundedItem, $refundItem ); -
apply_filters( 'dlm_orders_get_order_licenses_query', array( 'id' => $items, ), $order_item_product ); -
apply_filters( 'dlm_pre_client_ip', null ); -
apply_filters( 'dlm_product_fields', $fields, $product, $isVariableProduct ); -
do_action( 'dlm_product_save', $postId, $product ); -
apply_filters( 'dlm_rand_hash', null ); -
do_action( 'dlm_register_scripts', $this->version ); -
apply_filters( "dlm_rest_api_{$route_id}_validate_request", $state, $request, $capability, $this ); -
apply_filters( 'dlm_rest_api_license_hash_prefix', 'hashed-' ); -
apply_filters( 'dlm_rest_api_permissions', array( 'read' => __( 'Read', 'digital-license-manager' ), 'write' => __( 'Write', 'digital-license-manager' ), 'read_write' => __( 'Read & Write', 'digital-license-manager' ), ) ); -
apply_filters( 'dlm_rest_api_pre_response', $data, HttpHelper::requestMethod(), $route ); -
apply_filters( 'dlm_rest_api_prepare_input', $params ); -
apply_filters( 'dlm_rest_api_skip_authentication', false, HttpHelper::requestUri(), $route ); -
apply_filters( 'dlm_rest_api_validate_request', true, $request, $capability, $this ); -
apply_filters( 'dlm_rest_api_validation', $result, $server, $request ); -
apply_filters( 'dlm_rest_capability_check', $hasPermission, $cap ); -
apply_filters( 'dlm_rest_code_prefix', '' ); -
apply_filters( 'dlm_rest_controllers', $controllers ); -
apply_filters( 'dlm_rest_endpoints', array( array( 'id' => '010', 'name' => 'v1/licenses', 'method' => 'GET', 'group' => 'licenses', 'description' => __( 'List all licenses', 'digital-license-manager' ), 'deprecated' => false, ), array( 'id' => '011', 'name' => 'v1/licenses/{license_key}', 'method' => 'GET', 'group' => 'licenses', 'description' => __( 'Get single license', 'digital-license-manager' ), 'deprecated' => false, ), arr... ); -
apply_filters( 'dlm_rest_permission_callback', $request ); -
do_action( 'dlm_rest_response_error', $code, $message, $data ); -
apply_filters( 'dlm_settings_field_data', $field_data, $field, $args ); -
apply_filters( 'dlm_settings_field_sanitize', null, $key, $field, $value ); -
apply_filters( 'dlm_settings_fields', array( 'general' => array( 'name' => __( 'General', 'digital-license-manager' ), 'slug' => 'general', 'url' => add_query_arg( 'tab', 'general', $baseUrl ), 'priority' => 10, 'sanitize_callback' => array( $this, 'sanitizeGeneral' ), 'sections' => array( 'licenses' => array( 'name' => __( 'Licenses', 'digital-license-manager' ), 'page' => 'licenses', 'priority' => 10, 'fields' => array( array( 'i... ); -
apply_filters( 'dlm_settings_flush_keys', [ 'myaccount_endpoint' ], $settings ); -
apply_filters( 'dlm_simple_product_fields', $this->getProductFields( $product ), $product ); -
do_action( 'dlm_stock_delivery_assigned_licenses', $licenses, $neededAmount, $availableStock, $order, $product ); -
apply_filters( 'dlm_template_args_myaccount_licenses', array() ); -
apply_filters( 'dlm_text_license_table_header', null ); -
apply_filters( 'dlm_tool_add_order_item_license_query', [ 'paginate' => true, 'limit' => 10, 'meta_key' => 'dlm_order_complete', 'meta_value' => '1', 'meta_compare' => '=', ] ); -
apply_filters( 'dlm_tool_data_expiration', 48 * HOUR_IN_SECONDS, $this ); -
apply_filters( 'dlm_tool_generate_past_order_licenses_query', [ 'paginate' => true, 'status' => array( 'wc-processing', 'wc-completed' ), 'limit' => 10, 'meta_key' => 'dlm_order_complete', 'meta_compare' => 'NOT EXISTS', ] ); -
apply_filters( 'dlm_tool_generate_past_order_licenses_skip_order', $skip_order, $order ); -
apply_filters( 'dlm_tool_generate_past_order_licenses_skip_order_item', false, $item, $order ); -
apply_filters( 'dlm_tools_is_one_time', $this->is_one_time, $this ); -
apply_filters( 'dlm_variable_product_fields', $this->getProductFields( $product, $loop ), $product, $loop ); -
do_action( 'dlm_variable_product_save', $variationId, $i, $variation ); -
apply_filters( 'dlm_wcpips_allowed_types', [ 'invoice' ] ); -
apply_filters( 'dlm_wcpips_line_item', null, $item, $order ); -
apply_filters( 'dlm_wcpips_show_in_line_item', true ); -
apply_filters( 'dlm_welcome_notice_key', 'dlm_welcome' ); -
apply_filters( 'dlm_welcome_notice_path', DLM_ABSPATH . 'templates/admin/welcome.php' ); -
apply_filters( 'dlm_woocommerce_order_item_actions', [], $order_item, $licenses, $hide_keys ); -
do_action( 'dlm_woocommerce_order_licenses_created', $order, $orderedLicenses ); -
apply_filters( 'dlm_woocommerce_order_licenses_creation', ! $skip, $order ); -
apply_filters( 'dlm_woocommerce_order_licenses_creation_for_product', ! $skip, $order, $product, $orderItem ); -
apply_filters( 'dlm_woocommerce_product_edit_show_if', array( 'show_if_simple', 'show_if_subscription' ), $tabs, self::ADMIN_TAB_NAME ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email );
Generated from Digital License Manager's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: