Plugin::activate()

Summary

No summary available.

Source

File: src/BigCommerce/Plugin.php

	public static function activate() {
		if ( is_network_admin() ) {
			return; // network activated
		}
		if ( ! is_admin() ) {
			return; // not loaded via a normal admin screen
		}

		$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
		$action = $wp_list_table->current_action();
		if ( $action === 'activate-selected' ) {
			return; // multiple plugins activated
		}

		if ( defined( 'WP_CLI' ) && WP_CLI ) {
			return; // activated via CLI
		}

		set_transient( 'bigcommerce_activation_redirect', 1, 30 );
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.