Skip to content

activitypub_pre_http_post

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

Fires before an HTTP POST request is made.

Auto-generated Example

add_filter(
   'activitypub_pre_http_post',
    'my_activitypub_pre_http_post_callback',
    10,
    3
);

function my_activitypub_pre_http_post_callback(
    string $url,
    string $body,
    int $user_id
) {
    // Your code here.
    return $url;
}

Parameters

  • string $url The URL endpoint.
  • string $body The POST body.
  • int $user_id The WordPress User ID.

Files

\do_action( 'activitypub_pre_http_post', $url, $body, $user_id )

← All Hooks

Users

Developers

Clone this wiki locally