-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_interactions_url
github-actions[bot] edited this page Aug 18, 2025
·
9 revisions
Filters the redirect URL.
This filter runs after the type-specific filters and allows for final modifications to the interaction URL regardless of the object type.
/**
* Filters the redirect URL.
*
* This filter runs after the type-specific filters and allows for final modifications
* to the interaction URL regardless of the object type.
*
* @param string $redirect_url
* @param string $uri
* @param array $object
* @return string The filtered value.
*/
function my_activitypub_interactions_url_callback( string $redirect_url, string $uri, array $object ) {
// Your code here.
return $redirect_url;
}
add_filter( 'activitypub_interactions_url', 'my_activitypub_interactions_url_callback', 10, 3 );
-
string
$redirect_url
The URL to redirect to. -
string
$uri
The URI of the object. -
array
$object
The object being interacted with.
\apply_filters( 'activitypub_interactions_url', $redirect_url, $uri, $object )
Follow @[email protected] for updates and news.