Forums

no override for comments on individual articles (2 posts)

  1. zyrq
    Member
    Posted 3 years ago #

    The settings in General options > Discussion Settings
    can be overridden: These settings may be overridden for individual articles
    I dont want them to be overwritten by users. No comments on posts by users. How can I do that?

    If I comment out the next 2 lines, the box doesnt show up.

    line 445 in edit-form-advanced.php

    add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', 'post', 'normal', 'core');

    line 333 in edit-page-form.php

    add_meta_box('pagecommentstatusdiv', __('Discussion'), 'page_comments_status_meta_box', 'page', 'normal', 'core');

    How can I prevent the add_meta_box without hacking the core files?
    Unset this in any way in functions.php?

    thanks for any info.

  2. zyrq
    Member
    Posted 3 years ago #

    ah! found this:
    http://wordpress.org/support/topic/226187?replies=13
    function unused_meta_boxes

    and this plugin: WP-CMS Post Control
    good job!

Topic Closed

This topic has been closed to new replies.

About this Topic