LLMS_Staging::init()

Static Constructor.


Return Return

(void)


Top ↑

Source Source

File: includes/class-llms-staging.php

	public static function init() {

		if ( defined( 'LLMS_SITE_IS_CLONE' ) && LLMS_SITE_IS_CLONE ) {
			llms_maybe_define_constant( 'LLMS_SITE_FEATURE_RECURRING_PAYMENTS', false );
		}

		if ( ! defined( 'LLMS_SITE_FEATURE_RECURRING_PAYMENTS' ) ) {
			add_action( 'llms_site_clone_detected', array( __CLASS__, 'clone_detected' ) );
			add_action( 'admin_init', array( __CLASS__, 'handle_staging_notice_actions' ) );
		}

		add_action( 'admin_menu', array( __CLASS__, 'menu_warning' ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.13.0 Only add actions when recurring payments constant is not defined. If LLMS_SITE_IS_CLONE is defined & true, automatically disable recurring payments.
4.12.0 Add hook on llms_site_clone_detected action.
3.32.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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