I’m working on a plugin, which converts a site into a feedback sort of portal. I made a new object page, ‘Feedbacks’, which displays all the feedbacks is a tabular format, and I’m using register_column_headers($array_of_column_headers)
to make my table. I wanted to know if it is possible to add my own page row actions to this table, i mean under every feedback in the list, actions like ‘approve’, ‘delete’, ‘blacklist’ etc.
I read the code and a couple of tickets, and found out its done this way: for posts, its post_row_actions
, for comments its comment_row_actions
, for media its media_row_actions
and so on. Is there a filter that allows me to do, my-page-slug_row_actions
?
When using custom post type you use the
post_row_actions
filter hook and check the post type to modify it only:Quick update:
thanks to somatic
if you custom post type is “hierarchical” then you action hook is:
page_row_actions
.