sfw_retrieve_remote_page

Description

Retrieves any remote page and caches the result

Since: 1.0.0

Code

<?php function sfw_retrieve_remote_page( $url, $expires = WEEK_IN_SECONDS, $args = array() ){ 
	 … 
 } ?>

Parameter

$url
(string)
$expires
(int) Time in seconds

Default: WEEK_IN_SECONDS

$args
(array) passed to wp_safe_remote_get

Default: array()

Return

(string) remote body

File

core/includes/functions-api.php