Created
August 7, 2018 05:29
-
-
Save techjewel/d8b918c40b00dfb3fd59c233fc51f4e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add the following code snippet in your theme's function.php file to enable exact match for ninja table search | |
add_filter('ninja_table_attributes', function ($atts, $tableId) { | |
$targetTableId = 1; // change value "1" with your table id that you want to match exact | |
if($targetTableId == $tableId) { | |
$atts['data-filter-exact-match'] = "true"; | |
} | |
return $atts; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment