BBP_Topics_Admin::engagements_metabox()

Add the engagements meta-box


Description Description

Allows viewing of users who have engaged in a topic.


Source Source

File: includes/admin/topics.php

	public function engagements_metabox() {

		// Bail when creating a new topic
		if ( empty( $_GET['action'] ) || ( 'edit' !== $_GET['action'] ) ) {
			return;
		}

		// Bail if no engagements
		if ( ! bbp_is_engagements_active() ) {
			return;
		}

		// Add the meta-box
		add_meta_box(
			'bbp_topic_engagements_metabox',
			esc_html__( 'Engagements', 'bbpress' ),
			'bbp_topic_engagements_metabox',
			$this->post_type,
			'side',
			'low'
		);
	}

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.