wpdatatables_filter_excel_array

Contents

Description

This filter is applied to the array which is generated based on the Excel file. First each excel file is parsed to the array, which you can later modify with this filter.

Usage

add_filter( 'wpdatatables_filter_excel_array', 'filter_excel_array', 10, 3 );

Parameters

  • $parsedArray array
    Array of values.
  • $tableId integer
    ID of table from database.
  • $filePath string
    Path to Excel file.

Examples

// Callback function for the wpdatatables_filter_excel_array filter hook
function filter_excel_array( $parsedArray, $tableId, $filePath ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_excel_array', 'filter_excel_array', 10, 3);