Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Nick,

    thanks for your question.

    Yes, something like this is possible by using a filter hook to set new default values. You will need the latest version from the “master” branch from the GitHub repository at https://github.com/TobiasBg/TablePress (or wait for TablePress 0.7-beta, which will be out some time next week).
    After that, you can create a small plugin from the following code (or paste it into your theme’s “functions.php”):

    add_filter( 'tablepress_table_template', 'tablepress_change_default_values' );
    function tablepress_change_default_values( $default_table ) {
    	$default_table['options']['table_head'] = false;
    	$default_table['options']['table_foot'] = false;
    	$default_table['options']['alternating_row_colors'] = false;
    	$default_table['options']['row_hover'] = true;
    	$default_table['options']['print_name'] = false;
    	$default_table['options']['print_description'] = false;
    	$default_table['options']['use_datatables'] = false;
    
    	return $default_table;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Table Options – Changing Default Options’ is closed to new replies.