Tribe__Tickets__Integrations__Freemius::action_skip_activation()

Action to skip activation since Freemius code does not skip correctly here.


Return #

(bool) Whether activation was skipped.


Top ↑

Source #

File: src/Tribe/Integrations/Freemius.php

	public function action_skip_activation() {
		$fs_action = tribe_get_request_var( 'fs_action' );

		// Prevent fatal errors.
		if ( ! function_exists( 'fs_redirect' ) || ! function_exists( 'fs_is_network_admin' ) ) {
			return false;
		}

		// Actually do the skipping of connection, since Freemius code does not do this.
		if ( $this->slug . '_skip_activation' !== $fs_action ) {
			return false;
		}

		check_admin_referer( $this->slug . '_skip_activation' );

		$this->instance->skip_connection( null, fs_is_network_admin() );

		fs_redirect( $this->instance->get_after_activation_url( 'after_skip_url' ) );

		return true;
	}

Top ↑

Changelog #

Changelog
Version Description
4.11.5 Introduced.