diff --git src/bp-activity/bp-activity-blocks.php src/bp-activity/bp-activity-blocks.php
index fcaf9d4c1..9b40e5739 100644
|
|
function bp_activity_render_latest_activities_block( $attributes = array() ) { |
55 | 55 | $reset_activities_template = $GLOBALS['activities_template']; |
56 | 56 | } |
57 | 57 | |
58 | | $widget_args = array( |
59 | | 'max' => $max_activities, |
60 | | 'scope' => 'all', |
61 | | 'user_id' => $member_id, |
62 | | 'object' => false, |
63 | | 'action' => implode( ',', $types ), |
64 | | 'primary_id' => 0, |
65 | | 'secondary_id' => 0, |
| 58 | /** |
| 59 | * Filter here to edit the arguments used by the Latest Activities block. |
| 60 | * |
| 61 | * @since 9.0.0 |
| 62 | * |
| 63 | * @param array $widget_args The list of arguments for the Activity query. |
| 64 | * @param array $block_args The list of Block attributes. |
| 65 | */ |
| 66 | $widget_args = apply_filters( |
| 67 | 'bp_activity_block_latest_updates_args', |
| 68 | array( |
| 69 | 'max' => $max_activities, |
| 70 | 'scope' => 'all', |
| 71 | 'user_id' => $member_id, |
| 72 | 'object' => false, |
| 73 | 'action' => implode( ',', $types ), |
| 74 | 'primary_id' => 0, |
| 75 | 'secondary_id' => 0, |
| 76 | ), |
| 77 | $block_args |
66 | 78 | ); |
67 | 79 | |
68 | 80 | // Build the activity loop. |