wpdatatables_add_custom_template_modal

Contents

Description

The action is triggered when rendering custom modals for a wpDataTable. It allows you to inject additional content, scripts, or modifications into the modal templates rendered on the frontend.

Usage

add_action('wpdatatables_add_custom_template_modal', 'my_custom_modal_content');

Parameters

  • No parameters are passed to this action.

Examples

// Example: Add custom HTML content after modal render
function my_custom_modal_content() {
    // Your code here
}
add_action('wpdatatables_add_custom_template_modal', 'my_custom_modal_content');