wpdatatables_filter_email_cell

Contents

Description

This filter is applied to the value of an e-mail cell before it is passed to the front-end.

Usage

add_filter( 'wpdatatables_filter_email_cell', 'filter_email_cell', 10, 2 );

Parameters

  • $formattedValue string
    String cell value.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_email_cell filter hook
function filter_email_cell( $formattedValue, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_email_cell', 'filter_email_cell', 10, 2);