LLMS_Integrations::init()

Initialize Integration Classes


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.integrations.php

				'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 );

	}

	/**
	 * Get available integrations
	 *
	 * @return   LLMS_Abstract_Integration[]
	 * @since    1.0.0


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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