wpdatatables_before_render_table_config_data

Contents

Description

This action is executed before the table starts to render (either with or without a shortcode) and before loading table config from db.

Usage

add_action( 'wpdatatables_before_render_table_config_data', 'before_render_table_config_data' );

Parameters

  • $tableId integer
    ID of the table

Examples

// Callback function for the wpdatatables_before_render_table_config_data action hook
function before_render_table_config_data( $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_before_render_table_config_data', 'before_render_table_config_data' );