wpdatatables_filter_excel_editor_query

Contents

Description

This filter allows the modification of the INSERT/UPDATE query after cells have been modified in a separate database, excel-like table on the front-end.

Usage

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2 );
add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2 );
add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2 );

Parameters

  • $query string
    The INSERT/UPDATE query.
  • $tableId integer
    ID of table from database.

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
// Callback function for the wpdatatables_filter_excel_editor_query filter hook
function filter_excel_editor_query( $query, $tableId ) {
// Your code
return $query;
}
add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2);
// Callback function for the wpdatatables_filter_excel_editor_query filter hook function filter_excel_editor_query( $query, $tableId ) { // Your code return $query; } add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2);
// Callback function for the wpdatatables_filter_excel_editor_query filter hook
function filter_excel_editor_query( $query, $tableId ) { 
   // Your code
   return $query;
}
add_filter( 'wpdatatables_filter_excel_editor_query', 'filter_excel_editor_query', 10, 2);