• Resolved wpcal01

    (@wpcal01)


    Hello! I can deactivate Javascript library Functions from all the tables? I try to find but the only is for each one.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, it’s not possible to change the checkbox state for all tables in one go (bulk editing), but you can use a bit of code to override the state of the checkbox, to turn that feature of for all tables on the site. For that, add this to the “functions.php” file of your theme:

    add_filter( 'tablepress_table_render_options', 'wpcal01_tablepress_turn_off_datatables', 10, 2 );
    function wpcal01_tablepress_turn_off_datatables( $render_options, $table ) {
    	$render_options['use_datatables'] = false;
    	return $render_options;
    }

    Regards,
    Tobias

    Thread Starter wpcal01

    (@wpcal01)

    Thank you Mate!
    Works.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias
     
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Deactivate Javascript library’ is closed to new replies.