wpdatatables_before_render_table

Contents

Description

This action is executed before the table starts to render (either with or without a shortcode).

Usage

add_action( 'wpdatatables_before_render_table', 'before_render_table' );

Parameters

  • $tableId integer
    ID of the table

Examples

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

add_action( 'wpdatatables_before_render_table', 'before_render_table', 10 );