-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_rest_inbox_array
github-actions[bot] edited this page Mar 12, 2026
·
16 revisions
Filter the ActivityPub inbox array.
/**
* Filter the ActivityPub inbox array.
*
* @param array $response
* @param WP_REST_Request $request
* @return array The filtered value.
*/
function my_activitypub_rest_inbox_array_callback( array $response, WP_REST_Request $request ) {
// Your code here.
return $response;
}
add_filter( 'activitypub_rest_inbox_array', 'my_activitypub_rest_inbox_array_callback', 10, 2 );-
array$responseThe ActivityPub inbox array. -
WP_REST_Request$requestThe request object.
\apply_filters( 'activitypub_rest_inbox_array', $response, $request )Follow @activitypub.blog@activitypub.blog for updates and news.