bbp_is_topic_merge()

Check if current page is a topic merge page

Description

Return

(bool) True if it's the topic merge page, false if not

Source

File: bp-forums/common/template.php

function bbp_is_topic_merge() {

	// Assume false
	$retval = false;

	// Check topic edit and GET params
	if ( bbp_is_topic_edit() && !empty( $_GET['action'] ) && ( 'merge' === $_GET['action'] ) )
		return true;

	return (bool) apply_filters( 'bbp_is_topic_merge', $retval );
}

Changelog

Changelog
Version Description
bbPress (r2756) 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.