Skip to content

activitypub_safe_remote_post_response

github-actions[bot] edited this page Jul 29, 2025 · 10 revisions

Action to save the response of the remote POST request.

Auto-generated Example

add_filter(
   'activitypub_safe_remote_post_response',
    'my_activitypub_safe_remote_post_response_callback',
    10,
    4
);

function my_activitypub_safe_remote_post_response_callback(
    array|WP_Error $response,
    string $url,
    string $body,
    int $user_id
) {
    // Your code here.
    return $response;
}

Parameters

  • array|WP_Error $response The response of the remote POST request.
  • string $url The URL endpoint.
  • string $body The Post Body.
  • int $user_id The WordPress User-ID.

Files

\do_action( 'activitypub_safe_remote_post_response', $response, $url, $body, $user_id )

← All Hooks

Users

Developers

Clone this wiki locally