wpdatatables_filter_table_title

Contents

Description

This filter is applied to the table title. It is displayed in the frontend and used in the tables browse page to identify the table.

Usage

add_filter( 'wpdatatables_filter_table_title', 'filter_table_title', 10, 2 );

Parameters

  • $tableTitle string
    Title string.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_table_title filter hook
function filter_table_title( $tableTitle, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_table_title', 'filter_table_title', 10, 2);