- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
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 @activitypub.blog@activitypub.blog for updates and news.