Site icon Hip-Hop Website Design and Development

Disable "quick edit" for specific pages in functions.php

I know how to remove quick edit and/or other page actions for all pages in the WordPress Pages list. Now, I need to be more specific and remove certain actions from specific pages.

I can hide actions for specific pages using CSS, but would prefer to remove the source code entirely.

The following code will remove the quick edit, edit and beaver builder page action. It is not unique and referenced many times in other responses:

add_filter( 'page_row_actions', 'remove_page_row_actions', 10, 1 );
function remove_page_row_actions( $actions ) {
  if( get_post_type() == 'page' ) {
    unset( $actions['inline hide-if-no-js'] );
    unset( $actions['edit'] );
    unset( $actions['fl-builder'] );
  }
  return $actions;
}

I want to extend my if statement to include specific pages (or post ids), however I am not having any success when attempting to call/reference a post_id.

Is it possible to remove actions from a specific post id, e.g. 222?