WordPress plugin

The installation of Uhmi on your WordPress website.

Installation instructions

Install the plugin on your WordPress website.

When installed, you’ll find Uhmi in your menu. After adding the API keys to connect your Uhmi account, you’re ready to start.

How it works

Go to a post or page and fill in the title, price and other content details. Then, use the Uhmi shortcode [uhmi] ... [/uhmi] to wrap the paid part of your content. Or, add [uhmi] without the closing tag and all content below [uhmi] will be the paid part of your content.

You can place anything inside this shortcode: photos, videos, music, software, text, PDF’s, you name it. The content inside this shortcode will only be visible after the visitor has paid.

Tip: Give your visitors a preview of what they are about to pay for. For example: add the first paragraph of your article; a lower-res version of your photo; or a thumbnail of your video.

Settings

API keys

The API keys will connect your Uhmi account with your WordPress website. You can find your keys in your account at ‘API’.

Button

Change the text of your buttons to formulate your own call-to-action. This text is the general text for all buttons, but you can also have a custom button per individual payment.

Note

Notes will be placed above the button and can be used as a message for your visitors, for example, to explain what Uhmi is or why you chose to add a paywall. This is a general note, but you can also have a custom note per individual payment.

Content details

Title

The title of the post or page will also be the title of the content.

Price

The price of your content. Leave blank or enter 0 to offer the content for free.

Pay What You Want

With Pay What You Want you allow buyers to fill in their own price. You can however set a minimum by setting a price at “Price”.

Donation

Is it a donation? This option is to adjust the interface accordingly, e.g. ‘Pay’ will change into ‘Donate’.

Category

The content category, such as article, video, podcast, etc.

Cover

A background image to make the payment more personal.

Refundable

The option whether or not this content is refundable. If so, the buyer has 24 hours to request a refund.

One-time purchase

When unchecked, visitors will have to pay each time in order to access the content. For donations, you may want to uncheck to allow visitors to donate multiple times.

Hooks

Filter hook: uhmi_show_paywall

Use this hook to modify the paywall before a successful payment took place.

add_filter('uhmi_show_paywall', 'example_uhmi_show_paywall', 10, 3)

The hook has 3 arguments:

$content: the contents of the paywall.

$post: the concerning post.

$shortcode: the name of the shortcode.

Filter hook: uhmi_show_content

Use this hook to modify the output of the paid part of the content after a successful payment took place.

add_filter('uhmi_show_content', 'example_uhmi_show_content', 10, 3)

The hook has 3 arguments:

$content: the paid part of the content.

$post: the concerning post.

$shortcode: the name of the shortcode.