Title: LWS Affiliation
Author: Aurélien LWS
Published: <strong>August 23, 2022</strong>
Last modified: November 19, 2026

---

Search plugins

![](https://ps.w.org/lws-affiliation/assets/banner-772x250.jpg?rev=2797018)

![](https://ps.w.org/lws-affiliation/assets/icon.svg?rev=2774190)

# LWS Affiliation

 By [Aurélien LWS](https://profiles.wordpress.org/aurelienlws/)

[Download](https://downloads.wordpress.org/plugin/lws-affiliation.3.0.0.zip)

 * [Details](https://wordpress.org/plugins/lws-affiliation/#description)
 * [Reviews](https://wordpress.org/plugins/lws-affiliation/#reviews)
 *  [Installation](https://wordpress.org/plugins/lws-affiliation/#installation)
 * [Development](https://wordpress.org/plugins/lws-affiliation/#developers)

 [Support](https://wordpress.org/support/plugin/lws-affiliation/)

## Description

This plugin, created by [LWS](https://www.lws.fr), lets you **add banners and widgets,
such as a domain name availability search or a table of our hosting offers, to your
website**, and earn commissions with the LWS affiliate program.

#### Key Features

 * **Gutenberg blocks**: “LWS banner”, “LWS domain name search” and “LWS hosting
   offers”, usable in posts, pages, widget areas and block theme templates.
 * **Classic editor**: the “LWS Affiliation” button inserts a `[lws_affiliation]`
   shortcode, also usable with page builders.
 * **Automatic placements**: display a banner in your posts (before, after or after
   a given paragraph), in a sticky bar at the bottom of the page or on the sides
   of wide screens.
 * **Customizable domain name search**: extension, button color and text, language.
 * **Statistics**: follow your clicks, sales and commissions from your WordPress
   dashboard.
 * **Lightweight**: nothing is loaded on pages without a banner, banners are lazy-
   loaded and affiliate links are marked as sponsored.

You will need a [LWS affiliate account](https://affiliation.lws-hosting.com/members/login)
to use it.

### External services

This plugin connects to the LWS affiliate platform (affiliation.lws-hosting.com),
operated by LWS, to provide its features.

 * **Login**: when you connect your account from the plugin settings, your affiliate
   ID and password are sent to the platform, which returns an API key. The password
   is not stored on your site.
 * **Banners, statistics and sales**: the API key is sent to the platform to get
   the list of your banners and widgets (when you connect your account, once a day
   afterwards, and when you refresh the list) and your statistics and last sales(
   when you open the corresponding tabs of the settings page, at most every 15 minutes).
 * **Display on your site**: the banner images and the widgets (iframes) are loaded
   by your visitors’ browsers from affiliation.lws-hosting.com. The platform then
   receives their IP address and browser information, and records the clicks on 
   the banners to attribute the orders to your affiliate account.

LWS terms and conditions: https://www.lws.fr/cgv-lws.php
 LWS legal notice and personal
data (contact: rgpd@lws.fr): https://www.lws.fr/a_propos_infos.php

## Screenshots

[⌊Home of the LWS Affiliate plugin⌉⌊Home of the LWS Affiliate plugin⌉[

Home of the LWS Affiliate plugin

[⌊Welcome to the plugin⌉⌊Welcome to the plugin⌉[

Welcome to the plugin

[⌊Statistics of clicks, sales and commissions⌉⌊Statistics of clicks, sales and commissions⌉[

Statistics of clicks, sales and commissions

[⌊Last sales made on LWS.fr via your banner or widget⌉⌊Last sales made on LWS.fr
via your banner or widget⌉[

Last sales made on LWS.fr via your banner or widget

[⌊LWS Affiliate button in the classic WordPress editor⌉⌊LWS Affiliate button in 
the classic WordPress editor⌉[

LWS Affiliate button in the classic WordPress editor

[⌊LWS Affiliate button in the WordPress Gutenberg editor⌉⌊LWS Affiliate button in
the WordPress Gutenberg editor⌉[

LWS Affiliate button in the WordPress Gutenberg editor

[⌊Affiliate Widget Popup Window: Add Banners⌉⌊Affiliate Widget Popup Window: Add
Banners⌉[

Affiliate Widget Popup Window: Add Banners

[⌊Add a domain name search widget⌉⌊Add a domain name search widget⌉[

Add a domain name search widget

[⌊Add LWS Offer Tables Widget⌉⌊Add LWS Offer Tables Widget⌉[

Add LWS Offer Tables Widget

## Blocks

This plugin provides 1 block.

 *   LWS Affiliation Banner or widget from the LWS affiliate program.

## Installation

Follow the instructions on the configuration page to learn how to add your first
banner or widget.

There are 3 different ways to install LWS Affiliation (as with any other wordpress.
org plugin).

#### Using the WordPress dashboard

 1. In WordPress, in the Extensions menu, click on “Add”
 2. Search for the ‘LWS Affiliation’ plugin
 3. Click ‘Install Now’
 4. Activate the plugin
 5. Log in to your [LWS Affiliate account](https://affiliation.lws-hosting.com/members/login)
    to use it

#### Uploading in WordPress Dashboard

 1. Download the latest version of this [plugin](https://wordpress.org/plugins/lws-affiliation/)
 2. In WordPress, in the Extensions menu, click on “Add”
 3. Click on the top button “Upload an extension”
 4. Select the zip file from your computer (zip file from step 1.)
 5. Click ‘Install Now’
 6. Activate the plugin
 7. Log in to your [LWS Affiliate account](https://affiliation.lws-hosting.com/members/login)
    to use it

#### Using FTP

 1. Download the latest version of this [plugin](https://wordpress.org/plugins/lws-affiliation/)
 2. Unzip the zip file. This extracts the files from the compressed folder on your 
    computer
 3. Upload the LWS affiliation folder to the /wp-content/plugins/ directory in your
    web space
 4. Activate the plugin in WordPress
 5. Log in to your [LWS Affiliate account](https://affiliation.lws-hosting.com/members/login)
    to use it

## FAQ

### How to configure the plugin?

In your WordPress administration, click on “LWS Affiliation” in the side menu, then
enter your affiliate ID and your affiliate password. [Create your affiliate account](https://affiliation.lws-hosting.com/members/addmember)
if you do not have one yet.

### How to add a banner or a widget with Gutenberg?

Add one of the “LWS banner”, “LWS domain name search” or “LWS hosting offers” blocks,
then choose the banner or the widget in the list. The options of the widgets (extension,
button, language…) are in the block settings sidebar.

### And with the classic editor?

Click on the “LWS Affiliation” button of the editor toolbar and choose your banner
or widget: a `[lws_affiliation]` shortcode is inserted. In the block editor, this
shortcode can be converted into a block.

### How to display banners automatically?

Open the “Placements” tab of the plugin settings. You can display a banner or a 
widget in the content of your posts, a sticky banner at the bottom of the page, 
and banners on the sides of wide screens. All placements are disabled by default.

### Can I insert several widgets on the same page?

Yes. Since version 3.0, several widgets, even of the same type, can be displayed
on the same page.

### What happens to the banners inserted with previous versions?

They keep working: nothing changes for the content you already published.

### Can I self-affiliate?

No. Your customers will benefit from your personalized promo code and you will earn
a commission on the sales generated on [LWS.fr](https://www.lws.fr/). As a user 
of our WordPress plugins, you can use the coupon code WPEXT15 at checkout to get
an additional 15% discount.

### How does affiliation work?

 * Publish a LWS banner or widget on your site.
 * Each visitor clicking on your banner and then ordering a web hosting package 
   or another LWS service is counted.
 * Each validated order gives you a commission (provided that the customer does 
   not request a refund), that you can follow from your affiliate account.

### Where can I get help?

See our [online help](https://aide.lws.fr/search?q=affiliation). A free support 
is also available 7 days a week when you have ordered a service from LWS.

## Reviews

![](https://secure.gravatar.com/avatar/56e3c02959fab09948f21784712272b430404bd8f0edd7bacf2e26b6ebcee6aa?
s=60&d=retro&r=g)

### 󠀁[affiliation LWS](https://wordpress.org/support/topic/affiliation-lws/)󠁿

 [galoune](https://profiles.wordpress.org/galoune/) June 20, 2024

Très bonne application bonne rentabilité LWS et très réactif !

![](https://secure.gravatar.com/avatar/a3a70478d913a86e105fe1a52bf15ef4835ed8fe19530bbc8cc82a7fba75a647?
s=60&d=retro&r=g)

### 󠀁[LWS Affiliation](https://wordpress.org/support/topic/lws-affiliation/)󠁿

 [Roland Rolva](https://profiles.wordpress.org/roland-rolva/) July 6, 2023

<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">LWS
Affiliation est un bon plugin qui marche très bien avec Wordpress. Je l'ai déjà 
utilisé et j'en profite pour obtenir des remises sur mes achats sur LWS.</font></
font>

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/lws-affiliation/reviews/)

## Contributors & Developers

“LWS Affiliation” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Aurélien LWS ](https://profiles.wordpress.org/aurelienlws/)

[Translate “LWS Affiliation” into your language.](https://translate.wordpress.org/projects/wp-plugins/lws-affiliation)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lws-affiliation/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/lws-affiliation/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/lws-affiliation/)
by [RSS](https://plugins.trac.wordpress.org/log/lws-affiliation/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0.0

 * New: Gutenberg blocks “LWS banner”, “LWS domain name search” and “LWS hosting
   offers”, also usable in widget areas and block theme templates
 * New: `[lws_affiliation]` shortcode; the classic editor button now inserts this
   shortcode
 * New: automatic placements (in the content, sticky bar at the bottom of the page,
   side banners on wide screens)
 * New: several widgets, even of the same type, can be displayed on the same page
 * New: affiliate links are marked as sponsored (rel=”sponsored”)
 * New: when an ad blocker hides a banner, its promo code caption (and the sticky
   bar) is hidden too, also for banners inserted with previous versions
 * Fixed: banners inserted with previous versions are now centered above their promo
   code caption
 * Security: banners and widgets are rendered by the plugin from validated identifiers;
   no script or HTML from the content is executed any more, and the affiliate ID
   always comes from the connected account
 * Security: widgets are displayed in an iframe served by LWS; the plugin no longer
   loads an old version of jQuery on your site
 * Performance: the list of banners is refreshed once a day in the background, no
   network request when opening the editor
 * Performance: the plugin assets are only loaded on pages displaying a banner or
   a widget
 * Changed: the Poppins font of the settings page is now included in the plugin (
   no more request to Google Fonts)
 * Changed: requires WordPress 6.6 and PHP 7.4

#### 2.4.0

 * Security: the affiliate ID and password are now sent in the body of a POST request,
   never in the URL
 * Security: the API key is sent in a request header, never in the URL
 * Security: the login and logout forms are now protected against cross-site request
   forgery (CSRF)
 * Security: the review notice and its actions are restricted to administrators
 * Security: the server path is no longer exposed to the editor scripts
 * Performance: the plugin stylesheet is no longer loaded on every page of the site,
   only where a legacy banner caption is displayed
 * Performance: no network request when opening the editor; statistics and last 
   sales are cached for 15 minutes
 * Changed: the old front-end stylesheet contained generic rules (body, table, select…)
   that could alter your theme; they have been removed
 * Fixed: login errors were not displayed
 * Fixed: passwords containing spaces or special characters could be altered before
   being sent
 * Fixed: the banner window stayed empty when a persistent object cache (Redis, 
   Memcached) was active
 * Fixed: PHP warnings on the statistics and last sales tabs when the affiliate 
   platform could not be reached
 * Fixed: the “configure your account” notice pointed to a wrong URL and was shown
   to every user on every admin page
 * Fixed: the review reminder never expired
 * Fixed: a network error while logging in could cause a fatal error
 * Removed: obsolete allow_url_fopen and iThemes Security checks

#### 2.3.6

 * Updated translations and the “Our plugins” tab

#### 2.3.5

 * Added capability checks on AJAX actions

#### 2.3.4

 * Use the WordPress HTTP API instead of file_get_contents
 * Improved input sanitization and output escaping

#### 2.3.3

 * Hide other admin notices on the plugin settings page

#### 2.3.2

 * Fixed issue with CSS which could cause it to apply to unrelated elements

#### 2.3

 * Changed how data are loaded (now with AJAX)
 * Fixed security issue
 * Changed translations

#### 2.2.6

 * Minor CSS update

#### 2.2.5

 * Bug corrected for “Stats” page where data would not load properly
 * Can be asked for reviews

#### 2.2

 * Preventive security fix
 * New plugin added to “Our plugins”

#### 2.1

 * Complete rework
 * New design
 * New “Our plugins” page

#### 2.0.1

_Relase Date – 16 Sept, 2022_
 * Minor bug fixes * Now with a banner on the installation
page

#### 2.0

_Release Date – 23 August, 2022_
 * Updated design of the widget * Updated design
of the pages * Now display coupons on the banners and widgets * New tabs in the 
configuration page to follow the stats and performances of your banners and widgets*
Minors changes * Bugs fixes

#### 1.1

_Release Date – 20 April, 2022_

 * Corrected the translation
 * Corrected some sentences
 * Updated function calls to a more recent version
 * Added more instructions tu use our plugin

#### 1.0

_Release Date – 2nd October, 2015_

 * Add all banners.
 * Add table widget.
 * Update frame to select affiliate element to insert on the content

#### 0.1

_Release Date – 23th July, 2015_

 * Add domain name search Widget.

## Meta

 *  Version **3.0.0**
 *  Last updated **2 weeks ago**
 *  Active installations **600+**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [affiliate program](https://wordpress.org/plugins/tags/affiliate-program/)[affiliation](https://wordpress.org/plugins/tags/affiliation/)
   [banners](https://wordpress.org/plugins/tags/banners/)[Hosting](https://wordpress.org/plugins/tags/hosting/)
   [LWS](https://wordpress.org/plugins/tags/lws/)
 *  [Advanced View](https://wordpress.org/plugins/lws-affiliation/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/lws-affiliation/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/lws-affiliation/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/lws-affiliation/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/lws-affiliation/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/lws-affiliation/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lws-affiliation/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lws-affiliation/reviews/)

## Contributors

 *   [ Aurélien LWS ](https://profiles.wordpress.org/aurelienlws/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lws-affiliation/)