wpdatatables_filter_frontend_formdata

Contents

Description

This filter is applied to the data sent from the front-end editable table.

Usage

add_filter( 'wpdatatables_filter_frontend_formdata', 'filter_frontend_formdata', 10, 2 );

Parameters

  • $formData array
    Array of values.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_frontend_formdata filter hook
function filter_frontend_formdata( $formData, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_frontend_formdata', 'filter_frontend_formdata', 10, 2);