I’ve already found out here how to remove the row-actions from the posts table in wordpress admin. Now I’d like to do the same in the pages table. I’ve looked in the core files but, well, I just don’t get it. Anyone?
Here’s the code used in functions.php to remove row actions in posts:
function remove_row_actions( $actions )
{
if( get_post_type() === 'post' )
unset( $actions['edit'] );
unset( $actions['view'] );
unset( $actions['trash'] );
unset( $actions['inline hide-if-no-js'] );
return $actions;
}
add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );
Thanks in advance!