wpdatatables_filter_data_column_properties

Contents

Description

This filter is used to modify the data column properties for a table. It allows you to customize various column settings before the columns are rendered in the table.

Usage

add_filter( 'wpdatatables_filter_data_column_properties', 'modify_data_column_properties', 10, 3 );

Parameters

  • $dataColumnProperties array
    An associative array containing the properties of the column being processed.
  • $wdtParameters array
    The parameters and settings of the wpDataTable being processed.
  • $key string
    The unique key or identifier for the column being processed.

Examples

// Callback function for the wpdatatables_filter_data_column_properties filter hook
function modify_data_column_properties($dataColumnProperties, $wdtParameters, $key) {
    // Your code

    return $dataColumnProperties;
}

add_filter( 'wpdatatables_filter_data_column_properties', 'modify_data_column_properties', 10, 3 );