Snippets

LearnDash LearnDash Block callouts to BitBucket and LearnDash Support sites

Created by Paul Menard last modified
// Add the define and the code to your wp-config.php. 
/// Do not add to the theme functions.php because it needs to be set before LearnDash is loaded by WordPress.

// For LearnDash 3.1.8 and higher only this define is needed.
if ( ! defined( 'LEARNDASH_UPDATES_ENABLED' ) ) {
	define( 'LEARNDASH_UPDATES_ENABLED', false );
}


// For LearnDash 3.1.7 and lower the define and snippet ar needed.
if ( ! defined( 'LEARNDASH_ADDONS_UPDATER' ) ) {
	define( 'LEARNDASH_ADDONS_UPDATER', false );
}

if ( ! class_exists( 'LearnDash_Addon_Updater' ) ) {
	class LearnDash_Addon_Updater {
		protected static $instance = null;

		public static function get_instance() {
			if ( ! isset( static::$instance ) ) {
				static::$instance = new static();
			}

			return static::$instance;
		}

		public function __call( $name, $arguments ) {
			return;
		}
	}
}

Comments (0)