bp_is_user_friends_activity()

Is the current page a user’s Friends activity stream?


Description Description

Eg http://example.com/members/joe/friends/


Return Return

(bool) True if the current page is a user's Friends activity stream.


Top ↑

Source Source

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

function bp_is_user_friends_activity() {

	if ( ! bp_is_active( 'friends' ) ) {
		return false;
	}

	$slug = bp_get_friends_slug();

	if ( empty( $slug ) ) {
		$slug = 'friends';
	}

	if ( bp_is_user_activity() && bp_is_current_action( $slug ) ) {
		return true;
	}

	return false;
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.