How do you disable comments in WordPress?

To disable comments for future posts, open Settings, Discussion and clear the option that allows people to submit comments on new posts. This default affects content created afterward. Existing posts keep their current discussion setting until you change them separately.
Use the Posts or Pages list for existing content. Select the relevant items, choose Bulk Edit, set Comments to Do not allow, and apply the change. You can also edit the Discussion setting on an individual item. Screen Options may need to expose that panel in the classic editor.
Disabling new submissions does not delete comments already stored in WordPress. Decide whether old discussions should remain visible, be closed but readable, or be moved to the trash. You can also turn off pingbacks and trackbacks if the site does not use them.
Some themes or plugins display their own comment forms or support custom post types with separate settings. Test several content types while logged out. For a site that needs comments disabled everywhere, a maintained plugin can enforce the policy, but record why it is installed and review it during future maintenance.