classes/PodsInit.php
public function activate_install() {

		register_activation_hook( PODS_DIR . 'init.php', array( $this, 'activate' ) );
		register_deactivation_hook( PODS_DIR . 'init.php', array( $this, 'deactivate' ) );

		add_action( 'wpmu_new_blog', array( $this, 'new_blog' ), 10, 6 );

		if ( empty( self::$version ) || version_compare( self::$version, PODS_VERSION, '<' ) || version_compare( self::$version, PODS_DB_VERSION, '<=' ) || self::$upgrade_needed ) {
			$this->setup();
		} elseif ( self::$version !== PODS_VERSION ) {
			delete_option( 'pods_framework_version' );
			add_option( 'pods_framework_version', PODS_VERSION, '', 'yes' );

			self::$version = PODS_VERSION;

			pods_api()->cache_flush_pods();
		}

	}
public function activate_install() {

		register_activation_hook( PODS_DIR . 'init.php', array( $this, 'activate' ) );
		register_deactivation_hook( PODS_DIR . 'init.php', array( $this, 'deactivate' ) );

		add_action( 'wpmu_new_blog', array( $this, 'new_blog' ), 10, 6 );

		if ( empty( self::$version ) || version_compare( self::$version, PODS_VERSION, '<' ) || version_compare( self::$version, PODS_DB_VERSION, '<=' ) || self::$upgrade_needed ) {
			$this->setup();
		} elseif ( self::$version !== PODS_VERSION ) {
			delete_option( 'pods_framework_version' );
			add_option( 'pods_framework_version', PODS_VERSION, '', 'yes' );

			self::$version = PODS_VERSION;

			pods_api()->cache_flush_pods();
		}

	}
public function activate_install ( ) { register_activation_hook ( PODS_DIR . 'init.php' , array ( $ this , 'activate' ) ) ; register_deactivation_hook ( PODS_DIR . 'init.php' , array ( $ this , 'deactivate' ) ) ; add_action ( 'wpmu_new_blog' , array ( $ this , 'new_blog' ) , 10 , 6 ) ; if ( empty ( self :: $ version ) || version_compare ( self :: $ version , PODS_VERSION , '<' ) || version_compare ( self :: $ version , PODS_DB_VERSION , '<=' ) || self :: $ upgrade_needed ) { $ this -> setup ( ) ; } elseif ( self :: $ version !== PODS_VERSION ) { delete_option ( 'pods_framework_version' ) ; add_option ( 'pods_framework_version' , PODS_VERSION , '' , 'yes' ) ; self :: $ version = PODS_VERSION ; pods_api ( ) -> cache_flush_pods ( ) ; } }
Activate and Install
Activate and Install