wpdatatables_columns_types_array

Contents

Description

This filter is applied to the column types array before saving the columns for the table in the database.

Usage

add_filter( 'wpdatatables_columns_types_array', 'filter_columns_types_array', 10, 3 );

Parameters

  • $columnsTypesArray array
    Array of column types.
  • $columnsNotInSource array
    Array of columns not in source anymore.
  • $columnsTypes array
    Array of existing column types.

Examples

// Callback function for the wpdatatables_columns_types_array filter hook
function filter_columns_types_array( $columnsTypesArray, $columnsNotInSource, $columnsTypes ) { 
   // Your code
   return columnsTypesArray;
}

add_action( 'wpdatatables_columns_types_array', 'filter_columns_types_array', 10, 3 );