BP_REST_Activity_Endpoint::can_see( WP_REST_Request $request )

Can this user see the activity?


Description Description


Parameters Parameters

$request

(Required) Full details about the request.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: bp-activity/classes/class-bp-rest-activity-endpoint.php

	protected function can_see( $request ) {
		return bp_activity_user_can_read(
			$this->get_activity_object( $request ),
			bp_loggedin_user_id()
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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