Wordpress
How to set up integration with WordPress
Important!
Make sure to integrate the Pushwoosh SDK into your web project in order to send pushes.
With Push notifications plugin for WordPress, you can send push notifications when you publish or update a post or a page.
Installation
The Pushwoosh plugin is available from the WordPress plugin repository. In the Admin panel, in the left menu, click Plugins -> Add New, and search by keyword “Pushwoosh”.
![](https://docs.pushwoosh.com/~gitbook/image?url=https%3A%2F%2Fgblobscdn.gitbook.com%2Fassets%252F-LZcP-aO1PEwwePSSaCB%252F-MUmjvKsLlK_9XRKVN1l%252F-MUmk2_4Z-5j9gVs9BIM%252Fimage.png%3Falt%3Dmedia%26token%3D23eadf87-1cf2-4e1d-b4e4-73dd7f68204b&width=768&dpr=4&quality=100&sign=db67917a&sv=1)
2. You can also manually install the plugin by downloading the plugin here. Once downloaded, unzip and move to your WordPress plugin directory (/wp-content/plugins
by default).
Configuration
Once the plugin is installed, click into the plugin settings.
Fill out the appropriate fields:
API token: Your API key, available in Pushwoosh under Settings -> API access.
Application code: The application to send pushes (find the application code in your Pushwoosh account).
Chrome Icon (optional): A URL to a custom image to be sent with the push for Chrome pushes.
Chrome/Safari Title (optional): If your pushes will have the same title for each push, you can enter the title here. You will have the option to edit your title before sending out a message.
Safari Action Button (optional): For Safari pushes, enter the wording to use for an action button on the push.
Note
Make sure you specified the push title in the “Safari Title” field, otherwise your Safari subscribers won't receive the notification. The plugin automatically uses a shortened URL in the ?p=12345 format instead of a placeholder you set in Safari Configuration section in Pushwoosh. Thus, in Safari settings, specify the URL Template and placeholder as http://youwebsite.com/%@, so that the resulting URL will be http://youwebsite.com/?p=12345
![](https://docs.pushwoosh.com/~gitbook/image?url=https%3A%2F%2Fgblobscdn.gitbook.com%2Fassets%252F-LZcP-aO1PEwwePSSaCB%252F-MUmhEqObIecsBclyuZ3%252F-MUmjDjVDcmZYgCI2R7r%252Fimage.png%3Falt%3Dmedia%26token%3D10c2cb44-ea33-48e3-8069-48fae3cb07df&width=768&dpr=4&quality=100&sign=d699d924&sv=1)
Note
You don't need to have a Premium account. You can use Pushwoosh Wordpress plugin with any type of account (subscription).
You are all set!
Using the plugin
When drafting a post in WordPress, a new section will display in the post options called “Pushwoosh notification”. With this field, you can draft the push message you wish to send to your users when you publish or update your post.
![](https://docs.pushwoosh.com/~gitbook/image?url=https%3A%2F%2Fgblobscdn.gitbook.com%2Fassets%252F-LZcP-aO1PEwwePSSaCB%252F-MUmhEqObIecsBclyuZ3%252F-MUmjP8FI_vcd0uAq5d1%252Fimage.png%3Falt%3Dmedia%26token%3D3bb3f851-8dd8-43e2-be56-359f675a4e84&width=768&dpr=4&quality=100&sign=62caae2f&sv=1)
You can optionally send a push to a segment of users by specifying its name. The segment must be configured in the Pushwoosh.
Recipients will receive a push with your text, with a web link to your post when they tap on the notification.
Special thanks to Rafael Fischmann for his help with testing and debugging the plugin.
Last updated