wpdatatables_insert_additional_column_value

Contents

Description

This filter is used to create and modify the insert array, allowing additional column values to be added before inserting data into the wpDataTables table.

Usage

add_filter( 'wpdatatables_insert_additional_column_value', 'insert_additional_column_value', 10, 3 );

Parameters

  • $insertArray array
    Array of values.
  • $row integer
    ID of row.
  • $columns string
    String.

Examples

// Callback function for the wpdatatables_insert_additional_column_value filter hook
function insert_additional_column_value( $insertArray, $row, $columns ) { 
         // Your code
      
}

add_action( 'wpdatatables_insert_additional_column_value', 'insert_additional_column_value', 10, 3 );