wpdatatables_before_preview_file_table

Contents

Description

This filter is applied to the constructed Table data created from a file before the table is previewed in the Table constructor.

Usage

add_filter( 'wpdatatables_before_preview_file_table', 'before_preview_file_table' );

Parameters

  • $tableData arrray
    The constructed table data containing the file path, name, description, and other table constructor parameters.

Examples

// Callback function for the wpdatatables_before_preview_file_table filter hook
function before_preview_file_table ( $tableData ) { 
    // Your code
}

add_filter( 'wpdatatables_before_preview_file_table', 'before_preview_file_table');