wpdatatables_get_ajax_data

Contents

Description

This action is executed before AJAX data is fetched for the server-side processing tables.

Usage

add_action( 'wpdatatables_get_ajax_data', 'get_ajax_data');

Parameters

  • $tableId integer

    Identifier of the table from MySQL.

Examples

// Callback function for the wpdatatables_get_ajax_data action hook
function get_ajax_data( $tableId ) { 
   // Check for specific table id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_get_ajax_data', 'get_ajax_data');