-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_safe_remote_get_response
github-actions[bot] edited this page Nov 14, 2025
·
12 revisions
Action to save the response of the remote GET request.
/**
* Action to save the response of the remote GET request.
*
* @param array|\WP_Error $response
* @param string $url
*/
function my_activitypub_safe_remote_get_response_callback( array|\WP_Error $response, string $url ) {
// Your code here.
}
add_action( 'activitypub_safe_remote_get_response', 'my_activitypub_safe_remote_get_response_callback', 10, 2 );-
array|\WP_Error$responseThe response of the remote GET request. -
string$urlThe URL endpoint.
\do_action( 'activitypub_safe_remote_get_response', $response, $url )\do_action( 'activitypub_safe_remote_get_response', $response, $url )Follow @[email protected] for updates and news.