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.


Constructor, get things started!

Return Return


Top ↑

Source Source

File: libraries/lifterlms-helper/class-lifterlms-helper.php

	private function __construct() {

		// Define class constants.

		 * When loaded as a library included by the LifterLMS core localization is handled by the LifterLMS core.
		 * When the plugin is loaded by itself as a plugin, we must localize it independently.
		if ( ! defined( 'LLMS_HELPER_LIB' ) || ! LLMS_HELPER_LIB ) {
			add_action( 'init', array( $this, 'load_textdomain' ), 0 );

		add_action( 'plugins_loaded', array( $this, 'init' ) );


Top ↑

Changelog Changelog

Version Description
3.4.0 Only localize when loaded as an independent plugin.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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