Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.



Description Description

Return Return


Top ↑

Source Source

File: vendor/lifterlms/lifterlms-rest/class-lifterlms-rest-api.php

	private function __construct() {

		if ( ! defined( 'LLMS_REST_API_VERSION' ) ) {
			define( 'LLMS_REST_API_VERSION', $this->version );

		// i18n.
		add_action( 'init', array( $this, 'load_textdomain' ), 0 );

		// Authentication needs to run early to handle basic auth.
		include_once LLMS_REST_API_PLUGIN_DIR . 'includes/class-llms-rest-authentication.php';

		// Load everything else.
		add_action( 'plugins_loaded', array( $this, 'init' ), 10 );


Top ↑

Changelog Changelog

Version Description
1.0.0-beta.4 Load authentication early.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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