Filters the array of row action links on the Posts list table.
Description
The filter is evaluated only for non-hierarchical post types.
Parameters
$actionsstring[]- An array of row action links. Defaults are
'Edit', ‘Quick Edit’,'Restore','Trash', ‘Delete Permanently’,'Preview', and'View'. $postWP_Post- The post object.
Source
$actions = apply_filters( 'post_row_actions', $actions, $post );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
Here is an example of how to modify the quick links in your custom post type admin table list,
If you are using a custom post type, and it’s hierarchical, you should instead use the filter
page_row_actions