-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_rest_outbox_array
github-actions[bot] edited this page Aug 1, 2025
·
4 revisions
Filter the ActivityPub outbox array.
/**
* Filter the ActivityPub outbox array.
*
* @param array $response
* @param WP_REST_Request $request
* @return array The filtered value.
*/
function my_activitypub_rest_outbox_array_callback( array $response, WP_REST_Request $request ) {
// Your code here.
return $response;
}
add_filter( 'activitypub_rest_outbox_array', 'my_activitypub_rest_outbox_array_callback', 10, 2 );
-
array
$response
The ActivityPub outbox array. -
WP_REST_Request
$request
The request object.
\apply_filters( 'activitypub_rest_outbox_array', $response, $request )
Follow @[email protected] for updates and news.