wpdatatables_after_header

Contents

Description

This action is called after the table header TR element is rendered on the page.

Usage

add_action( 'wpdatatables_after_header', 'after_header' );

Parameters

  • $tableId integer
    ID of the table.

Examples

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

add_action( 'wpdatatables_after_header', 'after_header', 10 );