wpdatatables_before_row

Contents

Description

This action is called before the table row is rendered on the page.

Usage

add_action( 'wpdatatables_before_row', 'before_row', 10, 2 );

Parameters

  • $tableId integer
    ID of the table.
  • $rowIndex integer
    Zero-based index of the row.

Examples

// Callback function for the wpdatatables_before_row action hook
function before_row( $tableId, $rowIndex ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_before_row', 'before_row', 10, 2);