post_row_actions filter-hookWP 2.8.0

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

The filter is evaluated only for non-hierarchical post types.


add_filter( 'post_row_actions', 'wp_kama_post_row_actions_filter', 10, 2 );

 * Function for `post_row_actions` filter-hook.
 * @param string[] $actions An array of row action links.
 * @param WP_Post  $post    The post object.
 * @return string[]
function wp_kama_post_row_actions_filter( $actions, $post ){

	// filter...
	return $actions;
An array of row action links.
Default: are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'
The post object.


Since 2.8.0 Introduced.

Where the hook is called

wp-admin/includes/class-wp-posts-list-table.php 1595
$actions = apply_filters( 'post_row_actions', $actions, $post );

Where the hook is used in WordPress

Usage not found.