I searched a lot how to customize custom posts list,
I managed to add a new columns with manage_commercial_cpi_posts_columns,
But, I need to remove the “title” from the list, and still have the edit, delete options.
How can I do it?
Leave a Reply
You must be logged in to post a comment.
You could hide the title link with CSS or JS, but here’s a PHP approach. First remove the title column, and add a custom one:
Then, use the row_actions method of the WP_List_Table class to generate the links. Code is copied from the WP_Posts_List_Table class. An important detail is the addition of
true
as the second parameter of therow_actions
method, ensuring the links are always visible.result