PHPMatters Help You Better Hosting Your PHP-based Sites
How to Add a Pay with a Tweet Button in WordPress

How to Add a Pay with a Tweet Button in WordPress

As is known, Twitter is a famous social network where you can promote your website and business effectively. There are many ways for the promotion, among which adding a pay with a tweet button is quite helpful if you offer file downloading service on your website. The button requires those who want to download the free files on your site to publish the information you want to their Twitter account. As a matter of fact, this is a win-win solution.

So, do you have any knowledge about how to add a pay with a tweet button in WordPress? In the following part, we will show you a step-by-step guide to integrate it in a WordPress site.

Install Pay with a Tweet Plugin

The most important step you need to take is to install pay with a tweet plugin in WordPress. As it indicates, you have to click the “Add New” under the “Plugin” in WordPress dashboard. After that, Enter “Pay with a Tweet” in the right side search box. Then you can install this plugin and activate it with 1 click on mouse. If you are careful enough, you will find that the plugin has been presented in your dashboard.

Install Pay with a Tweet Plugin

Set the Basic Information

After the activation of this plugin, you need to enter the general setting information of your plugin. On the setting page, you can notice that you have to enter Twitter consumer key and secret if you want to use this plugin. However, if you don’t have a key, it doesn’t matter. All you need to do is to create a new one by visiting the Twitter Developers page.

Information Setting

Upload Files

Visit Upload files under Pay with a Tweet and choose the files you want to upload from the local disk, then visitors can download the files you just uploaded. There is no doubt that such task is so easy that everyone can understand. Of course, you still have the right to delete or edit the files on the Manage Files page.

However, there is an important point you need to notice. When you upload your files, you’d better pay special attention to the maximum upload file size. Don’t upload the files out of size.

Upload Files

Create a New Payment Button

Now you can go to New Payment Button under Pay with a Tweet and enter some information, including a title, a tweet and a image. The title can indicate the major content of this tweet; the tweet is the message you want those who download files to tweet, and the image is given for better understanding the message or just a decoration. After that, choose your files attached and click the create payment button with your mouse.

Create New Payment Button

You should know that every button created is linked to a certain file. Obviously, the situation that mutiple buttons are linked to the same file is allowed. And the button you have created can be deleted permanently. When you make this decision, the image and file will be deleted at the same time.


After the steps mentioned above, you are able to deal with all your buttons created on Pay with a Tweet. Also, For each button, the plugin generates a shortcode which you can use anywhere on your site. The task is accomplished now.

Here comes out a conclusion that adding a pay with a tweet button in WordPress is necessary and useful for those who have promotion plans. At last, we hope this post can help you a lot.