includes/class-fs-plugin-updater.php
private function filters() {
            // Override request for plugin information
            add_filter( 'plugins_api', array( &$this, 'plugins_api_filter' ), 10, 3 );

            $this->add_transient_filters();

            /**
             * If user has the premium plugin's code but do NOT have an active license,
             * encourage him to upgrade by showing that there's a new release, but instead
             * of showing an update link, show upgrade link to the pricing page.
             *
             * @since 1.1.6
             *
             */
            // WP 2.9+
            add_action( "after_plugin_row_{$this->_fs->get_plugin_basename()}", array(
                &$this,
                'catch_plugin_update_row'
            ), 9 );
            add_action( "after_plugin_row_{$this->_fs->get_plugin_basename()}", array(
                &$this,
                'edit_and_echo_plugin_update_row'
            ), 11, 2 );

            add_action( 'admin_head', array( &$this, 'catch_plugin_information_dialog_contents' ) );

            if ( ! WP_FS__IS_PRODUCTION_MODE ) {
                add_filter( 'http_request_host_is_external', array(
                    $this,
                    'http_request_host_is_external_filter'
                ), 10, 3 );
            }

            if ( $this->_fs->is_premium() ) {
                if ( ! $this->is_correct_folder_name() ) {
                    add_filter( 'upgrader_post_install', array( &$this, '_maybe_update_folder_name' ), 10, 3 );
                }

                add_filter( 'upgrader_pre_install', array( 'FS_Plugin_Updater', '_store_basename_for_source_adjustment' ), 1, 2 );
                add_filter( 'upgrader_source_selection', array( 'FS_Plugin_Updater', '_maybe_adjust_source_dir' ), 1, 3 );

                if ( ! $this->_fs->has_any_active_valid_license() ) {
                    add_filter( 'wp_prepare_themes_for_js', array( &$this, 'change_theme_update_info_html' ), 10, 1 );
                }
            }
        }
private function filters() {
            // Override request for plugin information
            add_filter( 'plugins_api', array( &$this, 'plugins_api_filter' ), 10, 3 );

            $this->add_transient_filters();

            /**
             * If user has the premium plugin's code but do NOT have an active license,
             * encourage him to upgrade by showing that there's a new release, but instead
             * of showing an update link, show upgrade link to the pricing page.
             *
             * @since 1.1.6
             *
             */
            // WP 2.9+
            add_action( "after_plugin_row_{$this->_fs->get_plugin_basename()}", array(
                &$this,
                'catch_plugin_update_row'
            ), 9 );
            add_action( "after_plugin_row_{$this->_fs->get_plugin_basename()}", array(
                &$this,
                'edit_and_echo_plugin_update_row'
            ), 11, 2 );

            add_action( 'admin_head', array( &$this, 'catch_plugin_information_dialog_contents' ) );

            if ( ! WP_FS__IS_PRODUCTION_MODE ) {
                add_filter( 'http_request_host_is_external', array(
                    $this,
                    'http_request_host_is_external_filter'
                ), 10, 3 );
            }

            if ( $this->_fs->is_premium() ) {
                if ( ! $this->is_correct_folder_name() ) {
                    add_filter( 'upgrader_post_install', array( &$this, '_maybe_update_folder_name' ), 10, 3 );
                }

                add_filter( 'upgrader_pre_install', array( 'FS_Plugin_Updater', '_store_basename_for_source_adjustment' ), 1, 2 );
                add_filter( 'upgrader_source_selection', array( 'FS_Plugin_Updater', '_maybe_adjust_source_dir' ), 1, 3 );

                if ( ! $this->_fs->has_any_active_valid_license() ) {
                    add_filter( 'wp_prepare_themes_for_js', array( &$this, 'change_theme_update_info_html' ), 10, 1 );
                }
            }
        }
private function filters ( ) { // Override request for plugin information
 add_filter ( 'plugins_api' , array ( & $ this , 'plugins_api_filter' ) , 10 , 3 ) ; $ this -> add_transient_filters ( ) ; /**
             * If user has the premium plugin's code but do NOT have an active license,
             * encourage him to upgrade by showing that there's a new release, but instead
             * of showing an update link, show upgrade link to the pricing page.
             *
             * @since 1.1.6
             *
             */ // WP 2.9+
 add_action ( "after_plugin_row_{$this->_fs->get_plugin_basename()}" , array ( & $ this , 'catch_plugin_update_row' ) , 9 ) ; add_action ( "after_plugin_row_{$this->_fs->get_plugin_basename()}" , array ( & $ this , 'edit_and_echo_plugin_update_row' ) , 11 , 2 ) ; add_action ( 'admin_head' , array ( & $ this , 'catch_plugin_information_dialog_contents' ) ) ; if ( ! WP_FS__IS_PRODUCTION_MODE ) { add_filter ( 'http_request_host_is_external' , array ( $ this , 'http_request_host_is_external_filter' ) , 10 , 3 ) ; } if ( $ this -> _fs -> is_premium ( ) ) { if ( ! $ this -> is_correct_folder_name ( ) ) { add_filter ( 'upgrader_post_install' , array ( & $ this , '_maybe_update_folder_name' ) , 10 , 3 ) ; } add_filter ( 'upgrader_pre_install' , array ( 'FS_Plugin_Updater' , '_store_basename_for_source_adjustment' ) , 1 , 2 ) ; add_filter ( 'upgrader_source_selection' , array ( 'FS_Plugin_Updater' , '_maybe_adjust_source_dir' ) , 1 , 3 ) ; if ( ! $ this -> _fs -> has_any_active_valid_license ( ) ) { add_filter ( 'wp_prepare_themes_for_js' , array ( & $ this , 'change_theme_update_info_html' ) , 10 , 1 ) ; } } }
Initiate required filters.

@author Vova Feldman (@svovaf)
@since  1.0.4
Initiate required filters .