-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_rest_outbox_query
github-actions[bot] edited this page Jul 29, 2025
·
9 revisions
Filters WP_Query arguments when querying Outbox items via the REST API.
Enables adding extra arguments or setting defaults for an outbox collection request.
add_filter(
'activitypub_rest_outbox_query',
'my_activitypub_rest_outbox_query_callback',
10,
2
);
function my_activitypub_rest_outbox_query_callback(
array $args,
WP_REST_Request $request
) {
// Your code here.
return $args;
}
-
array
$args
Array of arguments for WP_Query. -
WP_REST_Request
$request
The REST API request.
\apply_filters( 'activitypub_rest_outbox_query', $args, $request )
Follow @[email protected] for updates and news.