How to use this function for this tablepress plugin
-
Hi guys i would like to ask how to use this function (below) how can i call it on my template
add_filter( ‘tablepress_cell_content’, ‘christom_search_in_cells’, 10, 4 );
function christom_search_in_cells( $cell_content, $table_id, $row_idx,
$col_idx ) {
if ( ‘123’ != $table_id ) {
return $cell_content;
}
if ( false === stripos( $cell_content, ‘searchterm’ ) ) {
$cell_content = ”;
}
return $cell_content;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use this function for this tablepress plugin’ is closed to new replies.