-
Notifications
You must be signed in to change notification settings - Fork 90
activitypub_pre_http_get_remote_object
github-actions[bot] edited this page Jul 22, 2026
·
19 revisions
Filters the preemptive return value of a remote object request.
This is an explicit in-process override (used for caching and tests), not untrusted network data, so it is returned as-is without self-confirmation.
/**
* Filters the preemptive return value of a remote object request.
*
* This is an explicit in-process override (used for caching and tests), not
* untrusted network data, so it is returned as-is without self-confirmation.
*
* @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$responseThe response. -
array|string|null$url_or_objectThe Object or the Object URL.
\apply_filters( 'activitypub_pre_http_get_remote_object', null, $url_or_object )Follow @activitypub.blog@activitypub.blog for updates and news.