-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_interactions_reply_url
github-actions[bot] edited this page Mar 2, 2026
·
11 revisions
Filters the URL used for replying to an ActivityPub object.
By default, this redirects to the WordPress post editor with the in_reply_to parameter set.
/**
* Filters the URL used for replying to an ActivityPub object.
*
* By default, this redirects to the WordPress post editor with the in_reply_to parameter set.
*
* @param string $redirect_url
* @param string $uri
* @param array $object
* @param string $intent
* @return string The filtered value.
*/
function my_activitypub_interactions_reply_url_callback( string $redirect_url, string $uri, array $object, string $intent ) {
// Your code here.
return $redirect_url;
}
add_filter( 'activitypub_interactions_reply_url', 'my_activitypub_interactions_reply_url_callback', 10, 4 );-
string$redirect_urlThe URL to redirect to. -
string$uriThe URI of the object to reply to. -
array$objectThe full object data being replied to. -
string$intentThe intent of the interaction.
\apply_filters( 'activitypub_interactions_reply_url', $redirect_url, $uri, $object, $intent )Follow @activitypub.blog@activitypub.blog for updates and news.