includes/class-freemius.php
static function _prepend_fs_allow_updater_and_dialog_flag_url_param() {
            $slug_basename_map = array();
            foreach ( self::$_instances as $instance ) {
                if ( ! $instance->is_plugin() ) {
                    continue;
                }

                $slug_basename_map[ $instance->get_slug() ] = $instance->premium_plugin_basename();
            }
            ?>
            <script type="text/javascript">
            (function( $ ) {
                var slugBasenameMap = <?php echo json_encode( $slug_basename_map ) ?>;
                for ( var slug in slugBasenameMap ) {
                    var basename = slugBasenameMap[ slug ];

                    // Try to get the plugin rows if on the "Plugins" page.
                    var $pluginRows = $( '.wp-list-table.plugins tr[data-plugin="' + basename + '"]');

                    if ( 0 === $pluginRows.length ) {
                        // Try to get the plugin rows if on the "Updates" page.
                        var $pluginCheckbox = $( '#update-plugins-table input[type="checkbox"][value="' + basename + '"]' );
                        if ( 0 !== $pluginCheckbox.length ) {
                            $pluginRows = $pluginCheckbox.parents( 'tr:first' );
                        }
                    }

                    if ( 0 === $pluginRows.length ) {
                        // No plugin rows found.
                        continue;
                    }

                    // Find the "View details" links and add the `fs_allow_updater_and_dialog` param to the URL.
                    $pluginRows.find( 'a[href*="plugin-install.php?tab=plugin-information"]' ).each(function() {
                        var $this = $( this ),
                            href  = $this.attr( 'href' ).replace( '?tab=', '?fs_allow_updater_and_dialog=true&tab=');

                        $this.attr( 'href', href );
                    });
                }
            })( jQuery );
            </script>
            <?php
        }
static function _prepend_fs_allow_updater_and_dialog_flag_url_param() {
            $slug_basename_map = array();
            foreach ( self::$_instances as $instance ) {
                if ( ! $instance->is_plugin() ) {
                    continue;
                }

                $slug_basename_map[ $instance->get_slug() ] = $instance->premium_plugin_basename();
            }
            ?>
            <script type="text/javascript">
            (function( $ ) {
                var slugBasenameMap = <?php echo json_encode( $slug_basename_map ) ?>;
                for ( var slug in slugBasenameMap ) {
                    var basename = slugBasenameMap[ slug ];

                    // Try to get the plugin rows if on the "Plugins" page.
                    var $pluginRows = $( '.wp-list-table.plugins tr[data-plugin="' + basename + '"]');

                    if ( 0 === $pluginRows.length ) {
                        // Try to get the plugin rows if on the "Updates" page.
                        var $pluginCheckbox = $( '#update-plugins-table input[type="checkbox"][value="' + basename + '"]' );
                        if ( 0 !== $pluginCheckbox.length ) {
                            $pluginRows = $pluginCheckbox.parents( 'tr:first' );
                        }
                    }

                    if ( 0 === $pluginRows.length ) {
                        // No plugin rows found.
                        continue;
                    }

                    // Find the "View details" links and add the `fs_allow_updater_and_dialog` param to the URL.
                    $pluginRows.find( 'a[href*="plugin-install.php?tab=plugin-information"]' ).each(function() {
                        var $this = $( this ),
                            href  = $this.attr( 'href' ).replace( '?tab=', '?fs_allow_updater_and_dialog=true&tab=');

                        $this.attr( 'href', href );
                    });
                }
            })( jQuery );
            </script>
            <?php
        }
static function _prepend_fs_allow_updater_and_dialog_flag_url_param ( ) { $ slug_basename_map = array ( ) ; foreach ( self :: $ _instances as $ instance ) { if ( ! $ instance -> is_plugin ( ) ) { continue ; } $ slug_basename_map [ $ instance -> get_slug ( ) ] = $ instance -> premium_plugin_basename ( ) ; } ?>
            <script type="text/javascript">
            (function( $ ) {
                var slugBasenameMap = <?php echo json_encode ( $ slug_basename_map ) ?>;
                for ( var slug in slugBasenameMap ) {
                    var basename = slugBasenameMap[ slug ];

                    // Try to get the plugin rows if on the "Plugins" page.
                    var $pluginRows = $( '.wp-list-table.plugins tr[data-plugin="' + basename + '"]');

                    if ( 0 === $pluginRows.length ) {
                        // Try to get the plugin rows if on the "Updates" page.
                        var $pluginCheckbox = $( '#update-plugins-table input[type="checkbox"][value="' + basename + '"]' );
                        if ( 0 !== $pluginCheckbox.length ) {
                            $pluginRows = $pluginCheckbox.parents( 'tr:first' );
                        }
                    }

                    if ( 0 === $pluginRows.length ) {
                        // No plugin rows found.
                        continue;
                    }

                    // Find the "View details" links and add the `fs_allow_updater_and_dialog` param to the URL.
                    $pluginRows.find( 'a[href*="plugin-install.php?tab=plugin-information"]' ).each(function() {
                        var $this = $( this ),
                            href  = $this.attr( 'href' ).replace( '?tab=', '?fs_allow_updater_and_dialog=true&tab=');

                        $this.attr( 'href', href );
                    });
                }
            })( jQuery );
            </script>
            <?php }
Prepends the `fs_allow_updater_and_dialog` param to the plugin information URLs to tell the SDK to handle
the information that is shown on the plugin details dialog that is shown when the relevant link is clicked.

@author Leo Fajardo (@leorw)
@since 2.2.3

@return string
Prepends the fs_allow_updater_and_dialog param to the plugin information URLs to tell the SDK to handle the information that is shown on the plugin details dialog that is shown when the relevant link is clicked .