AP_Activate::__construct()

Description #

Construct class.

Source #

File: activate.php

	public function __construct() {
		global $network_wide;
		$this->network_wide = $network_wide;
		$this->disable_ext();
		$this->delete_options();

		// Append table names in $wpdb.
		ap_append_table_names();

		if ( $this->network_wide ) {
			$this->network_activate();
		} else {
			$this->activate();
		}

		// Enable/Disable addon.
		$this->enable_addons();
		$this->reactivate_addons();

		// Migrate old datas.
		$this->migrate();
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment