
wordpressnotes.blogspot.com
Wordpress NotesFriday, 2 December 2011. How to retrieve remote page data in wordpress? Wordpress will have an inbuilt function to get data from a remote page which is located in wp-includes/http.php. Here is the syntax of the function:. Url is the url of the page from which we want to get data. It returns the array of information which includes headers and content. Use the following code where you want to get the page data. Response = wp remote get( 'http:/ foo.com/file.txt' );. If( is wp error( $response ) ) {. First ...
http://wordpressnotes.blogspot.com/