Add column and post filter for a custom post type field on the edit.php page
I have a plugin that creates a custom post type that has a custom field generated with the plugin. The custom field is stored in the database as a meta key called
status. The value of this meta key is either “open” or “closed”.
On the edit.php page that lists the posts, I’d like to display the contents of the status field in a column. I’d also like to add a filter that allows the admin to show the all the posts by default with the option to view only “open” and “closed” posts using the filter selector.