Skip to content

Instantly share code, notes, and snippets.

@techjewel
Last active November 10, 2021 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techjewel/1b62aff84b5d18560379d71b5343241f to your computer and use it in GitHub Desktop.
Save techjewel/1b62aff84b5d18560379d71b5343241f to your computer and use it in GitHub Desktop.
Dequeue Ninja Tables Scripts and Styles
<?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 );
@aladin2016
Copy link

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment