bp_pages_terms_and_privacy_exclude( $pages )

Removed the non-component pages from $bp->pages from bp_core_set_uri_globals function.

Description

Source

File: bp-core/bp-core-filters.php

function bp_pages_terms_and_privacy_exclude( $pages ) {

	if ( !empty( $pages ) ) {

		// Removed terms page as non component page.
		if ( property_exists( $pages, 'terms' ) ) {
			unset( $pages->terms );
		}

		// Removed privacy policy page as non component page.
		if ( property_exists( $pages, 'privacy' ) ) {
			unset( $pages->privacy );
		}
	}

	return $pages;
}

Changelog

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