wpdatatables_before_header

Contents

Description

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

Usage

add_action( 'wpdatatables_before_header', 'before_header' );

Parameters

  • $tableId integer
    ID of the table.

Examples

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

add_action( 'wpdatatables_before_header', 'before_header', 10 );