Limited time
Fall Into Easy Savings
up to 50% Off
Grab the Deal
Limited time

wpdatatables_filter_column_params

Contents

Description

The filter allows you to modify the column parameters before they are used to display the table in wpDataTables. This includes customization of filtering, display settings, link attributes, and more.

Usage

add_filter( 'wpdatatables_filter_column_params', 'customize_column_params', 10, 2 );

Parameters

  • $params array
    The array containing column parameters, such as search options, range sliders, default filter values, link attributes, and other display-related settings.
  • $columnData array
    The array containing raw column data that can be used to modify the parameters.

Examples

// Callback function for the wpdatatables_filter_column_params filter
function customize_column_params($params, $columnData) {
    // Your code here

    return $params;
}

add_filter( 'wpdatatables_filter_column_params', 'customize_column_params', 10, 2 );