page_row_actions WordPress Action Hook
The page_row_actions hook allows you to add additional actions to the row of a page in the WordPress admin area. This can be useful for adding custom links or buttons to perform actions on a page.
apply_filters( 'page_row_actions', string[] $actions , WP_Post $post ) #
Filters the array of row action links on the Pages list table.
Description
The filter is evaluated only for hierarchical post types.
Parameters
- $actions
(string[])An array of row action links. Defaults are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'.
- $post
(WP_Post)The post object.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |