wpdatatables_excel_filter_table_description

Contents

Description

This filter is used to modify the JSON object containing the table description before it is returned. It allows you to alter the table description data based on specific requirements.

Usage

add_filter( 'wpdatatables_excel_filter_table_description', 'excel_filter_table_description', 10, 2 );

Parameters

  • $tableData stdClass
    Class containing the current configured table data, such as its content, type, placeholders, etc.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_excel_filter_table_description hook
function excel_filter_table_description( $tableData, $tableId ) {

if ( $tableId == 1) {
// Your code
}

}

add_action( 'wpdatatables_excel_filter_table_description', 'excel_filter_table_description', 10, 2 );