wpdatatables_after_save_table

Contents

Description

This action is executed after wpDataTables saves the table data (after the user presses “Save Changes” in the back-end table settings page).

Usage

add_action( 'wpdatatables_after_save_table', 'after_save_table' );

Parameters

  • $tableId integer
    ID of the table

Examples

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

add_action( 'wpdatatables_after_save_table', 'after_save_table' );