How do I change the default Screen Options in WordPress admin area

When editing a page or post in the admin area, you have the ability to enable and disable various screen options.

What I want to accomplish is to make it so that comments are not allowed by default, but can be turned on if the admin wants too. Currently by default it is set to allow comments.

Read More

How do I change allow comments to false (un-checked) by default ?

Related posts

Leave a Reply

1 comment

  1. Just paste this in your functions.php

    function comments_off_default( $post_content, $post ) {
        $post->comment_status = 'closed';
        return $post_content;
    }
    add_filter( 'default_content', 'comments_off_default', 10, 2 );
    

    Also you can try this plugin.