Skip to content

Instantly share code, notes, and snippets.

@TobiasBg
Created August 29, 2018 08:03
Show Gist options
  • Save TobiasBg/3362e29de0d43245840d85d8cd6d8b37 to your computer and use it in GitHub Desktop.
Save TobiasBg/3362e29de0d43245840d85d8cd6d8b37 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: TablePress Extension: Larger ID column
Plugin URI: https://tablepress.org/
Description: Custom Extension for TablePress to increase the size of the ID column on the "List of Tables"
Version: 1.0
Author: Tobias Bäthge
Author URI: https://tobias.baethge.com/
*/
if ( ! is_admin() )
return;
add_action( 'admin_print_styles', 'tablepress_input_field_size', 20 );
function tablepress_input_field_size() {
$current_screen = get_current_screen();
if ( 'tablepress_list' === $current_screen->id ) {
?>
<style type="text/css" media="screen">
.tablepress-all-tables thead .column-table_id {
width: 150px;
}
</style>
<?php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment