wpdatatables_before_read_file_data

Contents

Description

This filter is applied to the constructed Table data (created from a file) before the table is filled with data from the file in the Table constructor.

Usage

add_filter( 'wpdatatables_before_read_file_data', 'before_read_file_data' );

Parameters

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

Examples

// Callback function for the wpdatatables_before_read_file_data filter hook
function before_read_file_data ( $tableData ) { 
    // Your code
}

add_filter( 'wpdatatables_before_read_file_data', 'before_read_file_data');