BBP_Forums_Admin::comments_metabox()

Remove comments & discussion meta-boxes if comments are not supported

Description

Source

File: bp-forums/admin/forums.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.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.