Skip to content

activitypub_safe_remote_get_response

github-actions[bot] edited this page Aug 18, 2025 · 9 revisions

Action to save the response of the remote GET request.

Auto-generated Example

/**
 * Action to save the response of the remote GET request.
 *
 * @param array|WP_Error $response 
 * @param string         $url 
 * @return array|WP_Error The filtered value.
 */
function my_activitypub_safe_remote_get_response_callback( array|WP_Error $response, string $url ) {
    // Your code here.
    return $response;
}
add_filter( 'activitypub_safe_remote_get_response', 'my_activitypub_safe_remote_get_response_callback', 10, 2 );

Parameters

  • array|WP_Error $response The response of the remote GET request.
  • string $url The URL endpoint.

Files

\do_action( 'activitypub_safe_remote_get_response', $response, $url )
\do_action( 'activitypub_safe_remote_get_response', $response, $url )

← All Hooks

Users

Developers

Clone this wiki locally