bp_is_single_folder()

Is the current page a single folder item permalink?

Description

Return

(bool) True if the current page is a single album item permalink.

Source

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

function bp_is_single_folder() {

	if ( bp_is_active( 'groups' ) && bp_is_group() && is_numeric( bp_action_variable( 1 ) ) ) {
		return true;
	}

	return (bool) ( bp_is_document_component() && 'folders' == bp_current_action() && is_numeric( bp_action_variable( 0 ) ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.