Tribe__PUE__Checker::general_notifications()

Sets up and manages those license key notifications which don’t depend on communicating with a remote PUE server, etc.


Source

File: src/Tribe/PUE/Checker.php

		public function general_notifications() {
			$plugin_name = empty( $this->plugin_name ) ? $this->get_plugin_name() : $this->plugin_name;

			// Register our plugin name for use in messages (thus if we're deactivated, any previously
			// added persistent messaging can be cleared)
			Tribe__Main::instance()->pue_notices()->register_name( $plugin_name );

			// Detect and setup notices for missing keys
			$install_key = $this->get_key();

			if ( empty( $install_key ) && 'service' !== $this->context ) {
				Tribe__Main::instance()->pue_notices()->add_notice( Tribe__PUE__Notices::INVALID_KEY, $plugin_name );
			}
		}