groups_screen_group_albums()

Handle the loading of a single group’s albums.

Description

Source

File: bp-groups/screens/single/albums.php

function groups_screen_group_albums() {

	if ( ! bp_is_single_item() ) {
		return false;
	}

	/**
	 * Fires before the loading of a single group's activity page.
	 *
	 * @since BuddyPress 2.4.0
	 */
	do_action( 'groups_screen_group_albums' );

	/**
	 * Filters the template to load for a single group's activity page.
	 *
	 * @since BuddyPress 2.4.0
	 *
	 * @param string $value Path to a single group's template to load.
	 */
	bp_core_load_template( apply_filters( 'groups_screen_group_albums', 'groups/single/home' ) );
}

Changelog

Changelog
Version Description
BuddyPress 2.4.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.