Last active
November 10, 2021 16:31
-
-
Save techjewel/1b62aff84b5d18560379d71b5343241f to your computer and use it in GitHub Desktop.
Dequeue Ninja Tables Scripts and Styles
This file contains 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 snippet to theme's functions.php to remove all the scripts loaded by ninja tables. | |
// Please note that, If you use this script then none of the Ninja Tables | |
// Features like search, sorting, pagination will work. | |
// Also, Your table need to be set as Legacy Render from Table Settings -> Configuration -> Rendering Settings. | |
add_action( 'wp_print_styles', function() { | |
wp_dequeue_style( "footable_styles" ); // Remove The Syyles | |
}, 100 ); | |
add_action( "ninja_table_before_render_table_source", function () { | |
wp_dequeue_script( "footable" ); // Remove the Footable Library | |
wp_dequeue_script( "footable_init" ); // Remove the Custom Scripts | |
wp_dequeue_script( "ninja-tables-pro" ); // Remove Pro Version Script. It does not load always. | |
wp_dequeue_script( "jquery.stickytableheaders" ); // Remove the stickytableheaders it does not load always | |
}, 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello ! i use this plugin but i have 1 problem ... how can I make it appear to me only that product with that number? for example I want to look for number 2 but I show all the products that contain the number 2?... and I just want to show me only one product with that code not all that contain 2
for example when I'm looking for 2 I see the code 00002 + 00023+00032 but I want to appear only 00002 not all that contain the number 2
sorry for my english ...