wpdatatables_after_insert_column

Contents

Description

This action is executed after the new column is inserted in the database (when the columns are first generated by the plugin).

Usage

add_action( 'wpdatatables_after_insert_column', 'after_insert_column', 10, 2 );

Parameters

  • $columnConfig array

    Array of column settings loaded from the database

  • $tableId integer

    Identifier of the table from MySQL

Examples

// Callback function for the wpdatatables_after_insert_column action hook
function after_insert_column( $columnConfig, $tableId ) { 
   // Check for specific table id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_after_insert_column', 'after_insert_column', 10, 2 );