You can add a condition on capabilities in order to exclude the admin from the unset action for example add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 ); function remove_row_actions_staff( $actions ){ //This line stop function execution if user has some admin capabilities if( current_user_can( 'edit_users' ) ): return; endif; if( get_post_type() === 'wiki-testimonials' ) unset( $actions['view'] ); unset( $actions['edit'] ); return $actions; }