wpdatatables_insert_additional_column_header

Contents

Description

This filter is applied to the column headers read from the file a table is being created from, before inserting the columns into the table in the database.

Usage

add_filter( 'wpdatatables_insert_additional_column_header', 'inset_additional_header' );

Parameters

  • $columnHeaders arrray
    The array of column headers from the file.

Examples

// Callback function for the wpdatatables_insert_additional_column_header filter hook
function inset_additional_header ( $columnHeaders ) { 
    // Your code
    return $columnHeaders;
}

add_filter( 'wpdatatables_insert_additional_column_header', 'inset_additional_header' );