wpdatatables_filter_supplementary_array_column_object

Contents

Description

The `wpdatatables_filter_supplementary_array_column_object` filter allows developers to modify the options of column objects used in a table. It is invoked during the preparation of column objects based on table parameters, enabling customization of column properties.

Usage

add_filter( 'wpdatatables_filter_supplementary_array_column_object', 'customize_column_object_options', 10, 3 );

Parameters

  • $colObjOptions array
    An associative array containing the options for the column object. These include title, decimal places, link attributes, and more.
  • $wdtParameters array
    The parameters and settings for the table, including data types, input types, and additional column configurations.
  • $dataColumnKey string
    The key representing the column in the table parameters.

Examples

// Callback function for the wpdatatables_filter_supplementary_array_column_object filter hook
function customize_column_object_options($colObjOptions, $wdtParameters, $dataColumnKey) {
    // Your code here

    return $colObjOptions;
}

add_filter( 'wpdatatables_filter_supplementary_array_column_object', 'customize_column_object_options', 10, 3 );