-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_rest_outbox_pre
github-actions[bot] edited this page Aug 18, 2025
·
8 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
$request
The request object.
\do_action( 'activitypub_rest_outbox_pre', $request )
Follow @[email protected] for updates and news.