For example, if I have a Custom Post Type called “Video” and I want to show the length of that video in the main (edit.php) table listing, how can I manipulated the columns shown in that table?
Leave a Reply
You must be logged in to post a comment.
For example, if I have a Custom Post Type called “Video” and I want to show the length of that video in the main (edit.php) table listing, how can I manipulated the columns shown in that table?
You must be logged in to post a comment.
it’s similar to adding columns to regular posts, except the filter and action are slightly different:
manage_edit-{$post_type}_columns
andmanage_{$post_type}_posts_custom_column
EDIT –
if you want to reorder the columns, create a new array with the values from the original, adding your column in the desired position: