Skip to content

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.

Auto-generated Example

/**
 * 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 );

Parameters

  • array|string|null $response The response.
  • array|string|null $url_or_object The Object or the Object URL.

Files

apply_filters( 'activitypub_pre_http_get_remote_object', null, $url_or_object )

← All Hooks

Users

Developers

Clone this wiki locally