LLMS_Certificates::init()
Initialize class.
Return Return
(void)
Source Source
File: includes/class.llms.certificates.php
public function init() {
$this->certs['LLMS_Certificate_User'] = isset( $this->certs['LLMS_Certificate_User'] ) ? $this->certs['LLMS_Certificate_User'] : include_once 'certificates/class.llms.certificate.user.php';
$this->export_local_hosts = array_unique(
array(
wp_parse_url( get_home_url(), PHP_URL_HOST ),
wp_parse_url( get_site_url(), PHP_URL_HOST ),
)
);
$this->export_blocked_stylesheet_hosts = array_unique(
/**
* Filters the blocked hosts for stylesheets in certificate exports
*
* @since 4.21.0
*
* @param string[] Array of hosts to block.
*/
apply_filters(
'llms_certificate_export_blocked_stylesheet_hosts',
array(
'fonts.googleapis.com',
)
)
);
$this->export_blocked_image_hosts = array_unique(
/**
* Filters the blocked hosts for images in certificate exports
*
* @since 4.21.0
*
* @param string[] Array of hosts to block.
*/
apply_filters(
'llms_certificate_export_blocked_image_hosts',
array()
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Removed loading of class files that don't instantiate their class in favor of autoloading. |
| 4.21.0 | Define useful class properties used when exporting. |
| 1.0.0 | Introduced. |