-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_pre_http_post
github-actions[bot] edited this page Aug 7, 2025
·
5 revisions
Fires before an HTTP POST request is made.
add_filter(
'activitypub_pre_http_post',
function(
string $url,
string $body,
int $user_id
) {
// Your code here.
return $url;
},
10,
3
);
-
string
$url
The URL endpoint. -
string
$body
The POST body. -
int
$user_id
The WordPress User ID.
\do_action( 'activitypub_pre_http_post', $url, $body, $user_id )
Follow @[email protected] for updates and news.