本文整理匯總了PHP中BP_Activity_Activity::get_specific方法的典型用法代碼示例。如果您正苦於以下問題:PHP BP_Activity_Activity::get_specific方法的具體用法?PHP BP_Activity_Activity::get_specific怎麽用?PHP BP_Activity_Activity::get_specific使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BP_Activity_Activity
的用法示例。
在下文中一共展示了BP_Activity_Activity::get_specific方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: bp_activity_get_specific
function bp_activity_get_specific( $args = '' ) {
$defaults = array(
'activity_ids' => false, // A single activity_id or array of IDs.
'page' => 1, // page 1 without a per_page will result in no pagination.
'per_page' => false, // results per page
'max' => false, // Maximum number of results to return
'sort' => 'DESC', // sort ASC or DESC
'display_comments' => false // true or false to display threaded comments for these specific activity items
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
return apply_filters( 'bp_activity_get_specific', BP_Activity_Activity::get_specific( $activity_ids, $max, $page, $per_page, $sort, $display_comments ) );
}