Tribe__Tickets__Integrations__Freemius::maybe_remove_activation_complete_notice()

Method to remove the sticky message when the plugin is active for Freemius.

Contents


Source

File: src/Tribe/Integrations/Freemius.php

	public function maybe_remove_activation_complete_notice() {
		// Bail if the is_pending_activation() method doesn't exist.
		if ( ! method_exists( $this->instance, 'is_pending_activation' ) ) {
			return;
		}

		// Bail if it's still pending activation.
		if ( $this->instance->is_pending_activation() ) {
			return;
		}

		$admin_notices = FS_Admin_Notices::instance( $this->slug, $this->name, $this->instance->get_unique_affix() );

		// Bail if it doesn't have the activation complete notice.
		if ( ! $admin_notices->has_sticky( 'activation_complete' ) ) {
			return;
		}

		// Remove the sticky notice for activation complete.
		$admin_notices->remove_sticky( 'activation_complete' );
	}

Top ↑

Changelog

Changelog
Version Description
4.11.5 Introduced.