This method has been deprecated.

BP_Activity_Activity::get_specific( mixed $activity_ids, int|bool $max = false, int $page = 1, int $per_page = 25, string $sort = 'DESC', bool $display_comments = false )

In BuddyPress 1.2.x, this was used to retrieve specific activity feed items (for example, on an activity’s permalink page).

Description

As of 1.5.x, use BP_Activity_Activity::get() with an ‘in’ parameter instead.

Parameters

$activity_ids

(Required) Array or comma-separated string of activity IDs to retrieve.

$max

(Optional) Maximum number of results to return. (Optional; default is no maximum).

Default value: false

$page

(Optional) The set of results that the user is viewing. Used in pagination. (Optional; default is 1).

Default value: 1

$per_page

(Optional) Specifies how many results per page. Used in pagination. (Optional; default is 25).

Default value: 25

$sort

(Optional) MySQL column sort; ASC or DESC. (Optional; default is DESC).

Default value: 'DESC'

$display_comments

(Optional) Retrieve an activity item's associated comments or not. (Optional; default is false).

Default value: false

Return

(array)

Source

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

	public static function get_specific( $activity_ids, $max = false, $page = 1, $per_page = 25, $sort = 'DESC', $display_comments = false ) {
		_deprecated_function( __FUNCTION__, '1.5', 'Use BP_Activity_Activity::get() with the "in" parameter instead.' );
		return BP_Activity_Activity::get( $max, $page, $per_page, $sort, false, false, $display_comments, false, false, $activity_ids );
	}

Changelog

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