public function remove_comments_meta_boxes()
    {
        if (\is_admin() && \current_user_can('manage_options')) {
            // Get all public post types.
            $post_types = \get_post_types([ 'public' => true ]);

            foreach ($post_types as $post_type) {
                \remove_meta_box('commentstatusdiv', $post_type, 'normal');
                \remove_meta_box('commentsdiv', $post_type, 'normal');
                \remove_meta_box('trackbacksdiv', $post_type, 'normal');
            }
        }
    }