- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
activitypub_rest_outbox_array
        github-actions[bot] edited this page Sep 9, 2025 
        ·
        9 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$responseThe ActivityPub outbox array. - 
WP_REST_Request$requestThe request object. 
\apply_filters( 'activitypub_rest_outbox_array', $response, $request )Follow @[email protected] for updates and news.