BBP_Topics_Admin::favorites_metabox()

Add the favorites meta-box


Description Description

Allows viewing of users who have favorited a topic.


Source Source

File: includes/admin/topics.php

	public function favorites_metabox() {

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

		// Bail if no favorites
		if ( ! bbp_is_favorites_active() ) {
			return;
		}

		// Add the meta-box
		add_meta_box(
			'bbp_topic_favorites_metabox',
			esc_html__( 'Favorites', 'bbpress' ),
			'bbp_topic_favorites_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.