wpdatatables_filter_initial_table_construct

Contents

Description

This filter is applied on the table object after table data is read from data source and columns are generated. It can be used for creating a new table type.

Usage

add_filter( 'wpdatatables_filter_initial_table_construct', 'filter_initial_table_construct' );

Parameters

  • $wpDataTableObject object
    WPDataTable object.

Examples

// Callback function for the wpdatatables_filter_initial_table_construct filter hook
function filter_initial_table_construct( $wpDataTableObject ) { 
     // Your code
  
}

add_action( 'wpdatatables_filter_initial_table_construct', 'filter_initial_table_construct' );