wpdatatables_before_filtering_form

Contents

Description

This action is called before the filtering form is rendered on the page.

Usage

add_action( 'wpdatatables_before_filtering_form', 'before_filtering_form' );

Parameters

  • $tableId integer
    ID of the table.

Examples

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

add_action( 'wpdatatables_before_filtering_form', 'before_filtering_form', 10 );