-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_pre_http_get_remote_object
github-actions[bot] edited this page Aug 26, 2025
·
10 revisions
Filters the preemptive return value of a remote object request.
/**
* Filters the preemptive return value of a remote object request.
*
* @param array|string $response
* @param array|string $url_or_object
* @return array|string The filtered value.
*/
function my_activitypub_pre_http_get_remote_object_callback( array|string $response = null, array|string $url_or_object = null ) {
// Your code here.
return null;
}
add_filter( 'activitypub_pre_http_get_remote_object', 'my_activitypub_pre_http_get_remote_object_callback', 10, 2 );
-
array|string|null
$response
The response. -
array|string|null
$url_or_object
The Object or the Object URL.
apply_filters( 'activitypub_pre_http_get_remote_object', null, $url_or_object )
Follow @[email protected] for updates and news.