bbp_is_shortcode()

Check if current page is a bbPress shortcode

Description

Return

(bool) Is it a bbPress shortcode page?

Source

File: bp-forums/common/template.php

function bbp_is_shortcode() {
	// Assume false
	$retval = false;

	// Check query name
	if ( empty( $retval ) && 'bbp_shortcodes' === get_query_var( '_bbp_shortcode_query' ) ) {
		$retval = true;
	}

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

Changelog

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