bbp_is_topic_split()
Check if current page is a topic split page
Description
Return
(bool) True if it's the topic split page, false if not
Source
File: bp-forums/common/template.php
function bbp_is_topic_split() { // Assume false $retval = false; // Check topic edit and GET params if ( bbp_is_topic_edit() && !empty( $_GET['action'] ) && ( 'split' === $_GET['action'] ) ) $retval = true; return (bool) apply_filters( 'bbp_is_topic_split', $retval ); }
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.