wpdatatables_filter_columns_css

Contents

Description

The filter allows you to customize the CSS applied to wpDataTables column headers.

Usage

add_filter('wpdatatables_filter_columns_css', 'custom_columns_css', 10, 4);

Parameters

  • $columnsCSS string
    The existing CSS styles for the column headers.
  • $column object
    The column object containing the column’s settings and properties.
  • $tableId string
    The ID of the table being rendered.
  • $cssColumnHeader string
    The CSS class for the specific column header being styled.

Examples

// Callback function for the wpdatatables_filter_columns_css filter
function custom_columns_css($columnsCSS, $column, $tableId, $cssColumnHeader) {
    // Your code here

    return $columnsCSS;
}

add_filter('wpdatatables_filter_columns_css', 'custom_columns_css', 10, 4);