wpdatatables_before_generate_mysql_based_query

Contents

Description

This filter is used to modify the table data before generating the MySQL-based query, allowing you to manipulate or further sanitize the query data before it is used in the table constructor.

Usage

add_filter( 'wpdatatables_before_generate_mysql_based_query', 'modify_table_data_before_query', 10, 1 );

Parameters

  • $tableData array
    The sanitized table data array, containing connection details and other parameters for the query.

Examples

// Callback function for the wpdatatables_before_generate_mysql_based_query filter hook
function modify_table_data_before_query($tableData) {
    // Your code
    return $tableData;
}

add_filter( 'wpdatatables_before_generate_mysql_based_query', 'modify_table_data_before_query', 10, 1 );