Browse: Home / Snippets /

Block callouts to BitBucket and LearnDash support sites

Contents


Snippet #

Important: All snippets are provided as-is without support or guarantees. These snippets are provided as guidelines for advanced users looking to customize LearnDash. For any additional help or support with these snippets, we recommend reaching out to a LearnDash Expert.

// 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;
		}
	}
}