AP_Activate::get_instance( string|boolean $network_wide = '' )

Description #

Return an instance of this class.

Parameters #

  • $network_wide
    string | boolean (Optional) Activate plugin network wide. Default value: ''

Source #

File: activate.php

	public static function get_instance( $network_wide = '' ) {

		// If the single instance hasn't been set, set it now.
		if ( null === self::$instance ) {
			anspress();
			self::$instance          = new self();
			$GLOBALS['network_wide'] = $network_wide;
		}

		return self::$instance;
	}

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