BBP_Topics_Admin::replies_metabox()

Add the replies meta-box


Description Description

Allows viewing & moderating of replies to a topic, based on the way comments are visible on a blog post.


Source Source

File: includes/admin/topics.php

	public function replies_metabox() {

		// Bail if post_type is not a reply
		if ( empty( $_GET['action'] ) || ( 'edit' !== $_GET['action'] ) ) {
			return;
		}

		// Add the meta-box
		add_meta_box(
			'bbp_topic_replies_metabox',
			esc_html__( 'Replies', 'bbpress' ),
			'bbp_topic_replies_metabox',
			$this->post_type,
			'normal',
			'high'
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.