Adding menu_order to CPT admin page

I have a custom post type (cpt_roundtable), and am trying to add a column to the admin page showing the menu_order for each entry. This is in my functions.php file. function set_roundtable_columns($columns) { return array( ‘cb’ => ‘<input type=”checkbox” />’, ‘title’ => __(‘Title’), ‘taxonomy-sessions’ => __(‘Session’), ‘menu_order’ => __(‘Order’), ‘date’ => __(‘Date’), ); } add_filter(‘manage_cpt_roundtable_posts_columns’ … Read more

how to display “Edit | Quick Edit | Trash | View” in custom WP_List_Table column?

I have removed “Post Title” in admin column, and created a custom column. Is there any way to the display “Edit | Quick Edit | Trash | View” link? 1 Answer 1 Those links are hard-coded to display in the “title” column as part of class-wp-posts-list-table.php. Look at the single_row() method in that file, specifically … Read more

How to add Edit | Delete button on rows?

I want to render columns with actions. When hover on row, Edit | Delete links show. Problem at function column_name($item). I don’t know why don’t run to this function. I tried to add wp_die() into this function but don’t have anything change. I written class extend WP_List_Table: class Custom_Table_Example_List_Table extends WP_List_Table { function __construct() { … Read more

Replace existing content from specific WooCommerce admin orders list column

How do I either replace or completely remove a column in the Woocommerce Orders list in admin? I know that there’s possible to just uncheck the “Shipping address” column from the “Screen Options” and add another custom column and name it “Shipping address” too. But idealy I would like to just have one “Shipping address” … Read more

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page? 4 Answers 4 Since there is no special avatar column to unset (the avatars are inside the username column), you could try instead to hide the avatars via css: function hide_avatars_wpse_94126() { if(!current_user_can(‘manage_options’)){ // hide only for non-admins echo “<style>.users … Read more

Remove “Comment” column in all post-types

I just want to remove Comment’s column in all post-types and in a single function My current function , Have to do each post-type like this : function remove_post_columns($columns) { unset($columns[‘comments’]); return $columns; } add_filter(‘manage_edit-post_columns’,’remove_post_columns’,10,1); function remove_page_columns($columns) { unset($columns[‘comments’]); return $columns; } add_filter(‘manage_edit-page_columns’,’remove_page_columns’,10,1); Possible to do in a single function and for future post-types ? … Read more

Make custom post column sortable

I have a custom column listing a post_meta value for each post in the post list screen. I could only find information on how to make a custom post type sortable. How do I make this sortable? Thanks in advance. add_filter(‘manage_posts_columns’ , ‘ws_add_manufacturer_column’); function ws_add_manufacturer_column($defaults){ $defaults[‘manufacturer’] = ‘Manufacturer’; return $defaults; } add_action(‘manage_posts_custom_column’, ‘ws_add_manufacturer_content’, 10, 2); … Read more