wpdatatables_before_get_rows_metadata

Contents

Description

The wpdatatables_before_get_rows_metadata action is triggered right before the row metadata is fetched from the database for a specific table. It allows you to execute custom logic, such as logging, validation, or conditional overrides—before any row data is retrieved or processed.

Usage

add_action('wpdatatables_before_get_rows_metadata', 'my_before_get_rows_metadata_handler');

Parameters

  • $tableID (int)
    The ID of the wpDataTable whose row metadata is about to be retrieved.

Examples

function my_before_get_rows_metadata_handler($tableID) {
    // Your code here
}
add_action('wpdatatables_before_get_rows_metadata', 'my_before_get_rows_metadata_handler');