Strange font-style / font-weight on CPT list columns screen

This is happening because of this CSS rule that is generated in load-styles.php: .widefat thead th:last-of-type { -moz-border-radius-topright: 3px; -khtml-border-top-right-radius: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; } I’m not sure why this is here. To remove it, you should make a custom admin theme plugin to overwrite that CSS rule. First create a folder in your … Read more

wp_list_table multiple checkboxes

I came up with this…I changed input fields to <input type=”checkbox” id=”%2$s” name=”post[%2$s][]” value=”%2$s” /> <input type=”checkbox” id=”image_%3$s” name=”post[%3$s][]” value=”%2$s” />’ …and added third parameter to column_image function ($item[‘ID’]) function column_image($item){ return sprintf( ‘<input type=”checkbox” id=”image_%3$s” name=”post[%3$s][]” value=”%2$s” />’, /*$1%s*/ $this->_args[‘singular’], /*$2%s*/ ‘yes’, /*$3%s*/ $item[‘ID’] ); } and with that I get array which use … Read more

how to make custom link in wordpress

I am assuming the \ are not part of your code, but if they are then those need to be removed. You also are trying to use $user_id without ever declaring it. Here is how I would write the function: function cgc_ub_action_links( $actions, $user_object ) { $url = add_query_arg( array( ‘page_id’ => 13, ‘um_user’ => … Read more

Create Add New button [closed]

Regarding the “Add new” part, here’s an example that I assume will help you. I haven’t used WP_List_Table so unfortunately I can’t comment much on that. But based on the class reference I’d guess you’d need to use the get_columns() method. Using the code below you should be able to generate an url that you … Read more

How to remove the bottom table headers (column names) in WP_List_Table?

You can override the WP_List_Table::display() method and remove the tfoot which contains the bottom table headers: <tfoot> <tr> <?php $this->print_column_headers( false ); ?> </tr> </tfoot> Or you can add a specific class to the relevant admin page and use CSS to visually hide the bottom table headers: .my-plugin-foo-page table.wp-list-table > tfoot { display: none; }