Astra_Docs_Loader::get_remote_data()
Get remote data locally.
Description
Return
(string)
Source
File: inc/lib/docs/class-astra-docs-loader.php
public function get_remote_data() {
// If we already have the local file, return its contents.
$local_docs_contents = $this->get_local_docs_contents();
if ( $local_docs_contents ) {
return $local_docs_contents;
}
// Get the remote URL contents.
$this->remote_styles = $this->get_remote_url_contents();
$this->docs_data = $this->remote_styles;
$this->write_json();
return $this->docs_data;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |