apply_filters( 'post_row_actions', string[] $actions, WP_Post $post )

Filters the array of row action links on the Posts list table.

Description

The filter is evaluated only for non-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

File: wp-admin/includes/class-wp-posts-list-table.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_row_actions