LLMS_Integrations::init()
Initialize Integration Classes
Return Return
(void)
Source Source
File: includes/class.llms.integrations.php
public function init() {
$integrations = apply_filters(
'lifterlms_integrations',
array(
'LLMS_Integration_BBPress',
'LLMS_Integration_Buddypress',
)
);
if ( ! empty( $integrations ) ) {
foreach ( $integrations as $integration ) {
$load_integration = new $integration();
$priority = method_exists( $load_integration, 'get_priority' ) ? $load_integration->get_priority() : 50;
while ( array_key_exists( (string) $priority, $this->integrations ) ) {
$priority += .01;
}
$this->integrations[ (string) $priority ] = $load_integration;
ksort( $this->integrations );
}
}
do_action( 'llms_integrations_init', $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.33.2 | Made sort order check backwards compatible with deprecated legacy integrations. |
| 3.33.1 | Updated sort order to be based off the priority defined for the integration. |
| 3.18.0 | Updated. |
| 1.0.0 | Introduced. |