includes/class-freemius.php
public function _after_site_reactivated_callback( $context_blog_id = 0 ) {
            $this->_logger->entrance();

            $install = $this->get_install_by_blog_id( $context_blog_id );

            if ( ! is_object( $install ) ) {
                // Site not connected.
                return;
            }

            if ( ! self::is_site_active( $context_blog_id ) ) {
                // Site not yet active (can be in spam mode, archived, deleted...).
                return;
            }

            $current_blog_id = get_current_blog_id();

            $this->switch_to_blog( $context_blog_id );

            // Send re-activation event.
            $this->sync_install( array(
                'is_active' => true,
            ) );

            $this->switch_to_blog( $current_blog_id );
        }
public function _after_site_reactivated_callback( $context_blog_id = 0 ) {
            $this->_logger->entrance();

            $install = $this->get_install_by_blog_id( $context_blog_id );

            if ( ! is_object( $install ) ) {
                // Site not connected.
                return;
            }

            if ( ! self::is_site_active( $context_blog_id ) ) {
                // Site not yet active (can be in spam mode, archived, deleted...).
                return;
            }

            $current_blog_id = get_current_blog_id();

            $this->switch_to_blog( $context_blog_id );

            // Send re-activation event.
            $this->sync_install( array(
                'is_active' => true,
            ) );

            $this->switch_to_blog( $current_blog_id );
        }
public function _after_site_reactivated_callback ( $ context_blog_id = 0 ) { $ this -> _logger -> entrance ( ) ; $ install = $ this -> get_install_by_blog_id ( $ context_blog_id ) ; if ( ! is_object ( $ install ) ) { // Site not connected.
 return ; } if ( ! self :: is_site_active ( $ context_blog_id ) ) { // Site not yet active (can be in spam mode, archived, deleted...).
 return ; } $ current_blog_id = get_current_blog_id ( ) ; $ this -> switch_to_blog ( $ context_blog_id ) ; // Send re-activation event.
 $ this -> sync_install ( array ( 'is_active' => true , ) ) ; $ this -> switch_to_blog ( $ current_blog_id ) ; }
Executed after site re-activation.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int $context_blog_id
Executed after site re - activation .