wpdatatables_after_row

Contents

Description

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

Usage

add_action( 'wpdatatables_after_row', 'after_row', 10, 2 );

Parameters

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

Examples

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

add_action( 'wpdatatables_after_row', '_after_row', 10, 2);