Activity_Fetcher::get( int $activity_id )

Get an activity ID.


Parameters Parameters

$activity_id

(int) (Required) Activity ID.


Top ↑

Return Return

(BuddypressCLICommandBP_Activity_Activity|bool)


Source Source

File: cli/src/activity-fetcher.php

	public function get( $activity_id ) {
		$activity = new \BP_Activity_Activity( $activity_id );

		if ( empty( $activity->id ) ) {
			return false;
		}

		return $activity;
	}


Top ↑

User Contributed Notes User Contributed Notes

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