LLMS_Integrations::init()

Initialize Integration Classes


Description Description


Return Return

(void)


Top ↑

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 = $load_integration->get_priority();
				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 );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.33.1 Updated sort order to be based off the priority defined for the integration.
3.18.0 Updated.
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: