Astra_Docs_Loader::get_local_docs_contents()
Get local stylesheet contents.
Description
Return
(string|false) Returns the remote URL contents.
Source
File: inc/lib/docs/class-astra-docs-loader.php
public function get_local_docs_contents() {
$local_path = $this->get_local_docs_file_path();
// Check if the local file exists.
if ( $this->local_file_exists() ) {
// Attempt to update the file. Return false on fail.
if ( ! $this->write_json() ) {
return false;
}
}
ob_start();
include $local_path;
return ob_get_clean();
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |