wpdatatables_add_custom_modal

Contents

Description

The wpdatatables_add_custom_modal action is triggered during the rendering of the wpDataTables main table template. It allows you to add custom content or functionality into the modal rendering process for the table.

Usage

add_action('wpdatatables_add_custom_modal', 'my_custom_modal_content', 10, 1);

Parameters

  • $this object
    The current table object instance being rendered.

Examples


function my_custom_modal_content($table_instance) {
    // Your code here
}
add_action('wpdatatables_add_custom_modal', 'my_custom_modal_content', 10, 1);