Astra_Docs_Loader::__construct( string $url = '', string $subfolder_name = 'bsf-docs' )
Constructor.
Description
Get a new instance of the object for a new URL.
Parameters
- $url
-
(string) (Optional) The remote URL.
Default value: ''
- $subfolder_name
-
(string) (Optional) The subfolder name.
Default value: 'bsf-docs'
Source
File: inc/lib/docs/class-astra-docs-loader.php
public function __construct( $url = '', $subfolder_name = 'bsf-docs' ) {
$this->remote_url = $url;
$this->subfolder_name = $subfolder_name;
// Add a cleanup routine.
$this->schedule_cleanup();
add_action( 'astra_delete_docs_folder', array( $this, 'astra_delete_docs_folder' ) );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |