bp_forums_highlight_topic_tag_submenu( $submenu_file )

Make submenu highlight when on topic tag page

Description

Source

File: bp-forums/admin.php

function bp_forums_highlight_topic_tag_submenu( $submenu_file ) {
	$taxonomy = isset( $_GET['taxonomy'] )? $_GET['taxonomy'] : '';
	$post_type = isset( $_GET['post_type'] )? $_GET['post_type'] : '';

	if ( bbp_get_topic_tag_tax_id() == $taxonomy && bbp_get_topic_post_type() == $post_type ) {
		return 'edit-tags.php?taxonomy=' . bbp_get_topic_tag_tax_id() . '&post_type=' . bbp_get_topic_post_type();
	}

	return $submenu_file;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.