wpdatatables_filter_rendered_table

Contents

Description

This filter is applied to the rendered table HTML.

Usage

add_filter( 'wpdatatables_filter_rendered_table', 'filter_rendered_table', 10, 2 );

Parameters

  • $tableContent string

    HTML of the table.

  • $tableId integer

    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_rendered_table filter hook
function filter_rendered_table( $tableContent, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_rendered_table', 'filter_rendered_table', 10, 2);