// Let's check the remote site.
$http_api_args = array
( 'timeout' => 10,
'redirection' => 0,
'limit_response_size' => 153600, // 150 KB
'user-agent' => "
$user_agent; verifying pingback from
$remote_ip",
'headers' => array
( 'X-Pingback-Forwarded-For' =>
$remote_ip,
),
);
$request =
wp_safe_remote_get( $pagelinkedfrom,
$http_api_args );
$remote_source =
wp_remote_retrieve_body( $request );
$remote_source_original =
$remote_source;
if ( !
$remote_source ) { return $this->
pingback_error( 16,
__( 'The source URL does not exist.'
) );
} /**
* Filters the pingback remote source.
*
* @since 2.5.0
*
* @param string $remote_source Response source for the page linked from.
* @param string $pagelinkedto URL of the page linked to.
*/