How to remove row-actions from pages table?

For non-hierarchical post types the filter is called post_row_actions, for hierarchical it’s page_row_actions.

If you want to remove all actions you don’t have to unset the individual items, you can just return an empty array.

add_filter( 'page_row_actions', 'wpse16327_page_row_actions', 10, 2 );
function wpse16327_page_row_actions( $actions, $post )
{
    if ( 'page' == $post->post_type ) {
        return array();
    }
    return $actions;
}

Leave a Comment