How To Turn Off WordPress Comments Feature Programmatically

I would like to turn off WordPress comments programmatically but do not want to disable them one by one

You can use WordPress filter – comments_open to hide WordPress comments

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments