Archived topic
check whether comments is enabled/disabled
3 replies · Started by Marco on May 19, 2019
hello
I was wondering whether there is a function that would allow me to check whether posting comments is enabled/disabled something like: get_option( 'comments_posts' )...
Thanks in advance for your input.
Hi there,
This page should help: https://codex.wordpress.org/Option_Reference
If you do a search for "comments", you'll see all the options :)
Thanks Tom - I've looked into that page already and I was wondering whether it is kind of outdated - I don't see any option key to check whether posting comments is allowed or not - what's also confusing is that in WP you can actually enable/disable comments globally -> for future posts but there is also a setting on a post level - now idea how to get that setting