Disable “quick edit” for specific pages in functions.php
To reference the post ID you need the post object itself. <?php // Increase the number of arguments passed. add_filter( ‘page_row_actions’, ‘remove_page_row_actions’, 10, 2 ); // 2, not 1 // pass $post object as second argument. function remove_page_row_actions( $actions, $post ) { $post_types_affected = array(‘page’); $post_ids_affected = array( 111, 222 ); if ( in_array( $post->post_type, … Read more