-
Couldn't load subscription status.
- Fork 84
activitypub_rest_outbox_pre
github-actions[bot] edited this page Oct 7, 2025
·
10 revisions
Action triggered prior to the ActivityPub profile being created and sent to the client.
/**
* Action triggered prior to the ActivityPub profile being created and sent to the client.
*
* @param WP_REST_Request $request
* @return WP_REST_Request The filtered value.
*/
function my_activitypub_rest_outbox_pre_callback( WP_REST_Request $request ) {
// Your code here.
return $request;
}
add_filter( 'activitypub_rest_outbox_pre', 'my_activitypub_rest_outbox_pre_callback' );-
WP_REST_Request$requestThe request object.
\do_action( 'activitypub_rest_outbox_pre', $request )Follow @[email protected] for updates and news.