Created
August 29, 2018 08:03
-
-
Save TobiasBg/3362e29de0d43245840d85d8cd6d8b37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/* | |
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