wpdatatables_before_table

Contents

Description

This action is triggered before the table is rendered, allowing you to add content or perform operations just before the table HTML is output.

Usage

add_filter( 'wpdatatables_before_table', 'before_table', 10, 1 );

Parameters

  • $tableData integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_before_table filter hook
function before_table($tableId) {
     if ( $tableId == 1) { 
     // Your code
   } 
}

add_filter( 'wpdatatables_before_table', 'before_table', 10, 1 );