bp_is_single_album()

Is the current page a single album 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_album() {

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

	return (bool) ( bp_is_media_component() && 'albums' == bp_current_action() && is_numeric( bp_action_variable( 0 ) ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.