BBP_Replies_Admin::comments_metabox()
Remove comments & discussion meta-boxes if comments are not supported
Description Description
Source Source
File: includes/admin/replies.php
public function comments_metabox() {
if ( ! post_type_supports( $this->post_type, 'comments' ) ) {
remove_meta_box( 'commentstatusdiv', $this->post_type, 'normal' );
remove_meta_box( 'commentsdiv', $this->post_type, 'normal' );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |