wpdatatables_before_editor_dialog

Contents

Description

This action is called before the table editor dialog (only for editable tables) is rendered on the page.

Usage

add_action( 'wpdatatables_before_editor_dialog', 'before_editor_dialog' );

Parameters

  • $tableId integer
    ID of the table.

Examples

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

add_action( 'wpdatatables_before_editor_dialog', 'before_editor_dialog', 10);