Astra_WebFont_Loader::get_local_stylesheet_contents()
Get local stylesheet contents.
Description
Return
(string|false) Returns the remote URL contents.
Source
File: inc/lib/webfont/class-astra-webfont-loader.php
public function get_local_stylesheet_contents() {
$local_path = $this->get_local_stylesheet_path();
// Check if the local stylesheet exists.
if ( $this->local_file_exists() ) {
// Attempt to update the stylesheet. Return false on fail.
if ( ! $this->write_stylesheet() ) {
return false;
}
}
ob_start();
include $local_path; // PHPCS:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
return ob_get_clean();
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |