-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_interactions_follow_url
github-actions[bot] edited this page Aug 18, 2025
·
9 revisions
Filters the URL used for following an ActivityPub actor.
/**
* Filters the URL used for following an ActivityPub actor.
*
* @param string $redirect_url
* @param string $uri
* @param array $object
* @return string The filtered value.
*/
function my_activitypub_interactions_follow_url_callback( string $redirect_url, string $uri, array $object ) {
// Your code here.
return $redirect_url;
}
add_filter( 'activitypub_interactions_follow_url', 'my_activitypub_interactions_follow_url_callback', 10, 3 );
-
string
$redirect_url
The URL to redirect to. -
string
$uri
The URI of the actor to follow. -
array
$object
The full actor object data.
\apply_filters( 'activitypub_interactions_follow_url', $redirect_url, $uri, $object )
Follow @[email protected] for updates and news.