Iteras has developed its own WordPress plugin that allows you to install a paywall on your WordPress website with just a few clicks. Multiple paywalls can be configured on the same site, enabling separate access to different sub-products – for example, different sections of a newspaper.
You can find the plugin by searching for “Iteras” under Plugins in your WordPress admin interface.
To connect the plugin to Iteras, click on “Settings” under the plugin in the plugin overview. Locate the Iteras URL ID under the publication settings, and the paywall ID under the account settings in Iteras.
Further more there are these additional settings
Default paywall access: Defines whether posts are locked behind a specific paywall by default or open to everyone.
Access restriction: Specifies what happens when a visitor tries to access content they don’t have access to. You can either redirect them to a subscription landing page (URL set in Iteras), or truncate the content with a soft overlay box that may include optional content, such as instructions for logging in or subscribing
Once the Iteras plugin is installed in WordPress, a setting will appear on each article indicating whether the article is locked behind one or more paywalls.
In addition, the following shortcodes can be used:
Insert ordering form: [iteras-signup signupid="3for1"] (hvor “3for1” er et eksempel)
Insert paywall login: [iteras-paywall-login paywallid="qwerty123"] (“qwerty123″ is the ID of the paywall there is acess to, if more have to be logged in at the same, then separate them with commas forexample: paywallid=”qwerty123,yuiop456”
Insert Self-service: [iteras-selfservice]
More information
Further details are available on the official WordPress plugin page:
https://wordpress.org/plugins/iteras/
Developer information
If you wish to develop custom features, such as displaying paywall keys on protected articles, here are some technical notes:
We use post metadata (via
_post_meta
functions) to store paywall information:
https://plugins.trac.wordpress.org/browser/iteras/trunk/admin/iteras-admin.php#L118
The metadata key used on articles is
"iteras_paywall"
:
https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L21
The value stored in the field is a list of paywall IDs.
The logic for determining whether a page should be protected by a paywall is located here:
https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L334
The key line in this check is:
!empty($paywall_ids)
https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L347