wpdatatables_filter_email_cell_before_formatting

Contents

Description

This filter is applied to the value of an email cell before it is formatted and returned to the front-end.

Usage

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

Parameters

  • $content email
    String e-mail cell value before it is formatted to an email link.
  • $tableId integer
    ID of table from database.

Examples

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

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