bbp_is_topic_split()
Check if current page is a topic split page
Description Description
Return Return
(bool) True if it's the topic split page, false if not
Source Source
File: includes/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; } // Filter & return return (bool) apply_filters( 'bbp_is_topic_split', $retval ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |