·
1 min read
Programmatically Turn Off Comments in Wordpress with Filter
To turn comments off programmatically with a filter in Wordpress, you can set the post object's comment\status variable to "closed". Call the filter at some point after the post is loaded but...