LLMS_Staging::clone_detected()

Callback function to automatically disable site features when a clone is detected


Return Return

(void)


Top ↑

Source Source

File: includes/class-llms-staging.php

	public static function clone_detected() {

		if ( is_admin() && current_user_can( 'manage_lifterlms' ) && ! wp_doing_ajax() ) {
			self::notice();
			LLMS_Site::update_feature( 'recurring_payments', false );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.13.0 Only disable payments for logged in users on the admin panel when not processing ajax requests.
4.12.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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