wpdatatables_filter_column_config_object

Contents

Description

This filter is used to format the column configuration object for saving in the database.

Usage

add_filter( 'wpdatatables_filter_column_config_object', 'filter_column_config_object', 10, 2 );

Parameters

  • $columnConfig array
    Array of values.
  • $feColumn object
    WPDataTable column object.

Examples

// Callback function for the wpdatatables_filter_column_config_object filter hook
function filter_column_config_object( $columnConfig, $feColumn ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_column_config_object', 'filter_column_config_object', 10, 2);