How do I set up alerts in WordPress?

This guide will walk you through how to set up web push on WordPress and WordPress VIP. If you do not use WordPress, or wish to write custom code, please go to Web Push Quickstart.

Step 1. Choose Integration

Head over to to create an account. If this is not your first app with OneSignal, select New App/Website, name your app, select Web and "Next".

How do I set up alerts in WordPress?

Image showing platform selection

Select WordPress Plugin or Website Builder to continue:

How do I set up alerts in WordPress?

Image showing web push selection

Step 2. Site Setup

Once you've selected WordPress as your integration, you must fill out information about your site.

How do I set up alerts in WordPress?

Image showing Site Setup step

FieldDescriptionSITE NAMEThe default name to call your site used in push notifications.SITE URLYour website URL including:
- http:// or https://
- www or non-www links (e.g., RESUBSCRIBE (HTTPS ONLY)Recommended: Allows push subscribers to automatically resubscribe upon returning to your site without being prompted if they clear their browser data or if you are transferring to OneSignal from another push provider.DEFAULT ICON URLIcon used for the Slide Prompt and default for push notifications.

Enter an https icon URL or upload file that is square 256x256 pixels.

The file must be .png, .jpg, or .gif.

My site is not fully HTTPS

Select this checkbox if any apply:

  • you have an https://0 website
  • your site is hosted by

FieldDescriptionCHOOSE A LABELThe subdomain label used for push subscription. See Web Push HTTP vs. HTTPS for more details.

Step 3. Advanced Push Settings (optional)

OneSignal automatically provides the necessary certificates to work with Safari Browsers at no additional cost. If you already have your own Safari Web Push Certificates, you may upload it here.

Optional: Upload your own .p12 certificate

If you would like to add your own Safari P12 Certificate turn on the settings in Advanced Settings. This enables you to update your own Private Key File and Private Key Password.

How do I set up alerts in WordPress?

Advanced push settings in Wordpress Setup.

Step 4. Configure WordPress Plugin

Add the OneSignal WordPress Plugin to your WordPress website if you have not done so already.

Copy the following keys:

How do I set up alerts in WordPress?

Image showing your App ID and API Key

Paste these keys into your WordPress plugin Configure tab in the appropriate inputs:

How do I set up alerts in WordPress?

Turn on Push Prompts

Enable the Slide Prompt and Subscription Bell Prompt. These prompts allow you to ask site visitors permission to send them push notifications, making them push subscribers to your site.

How do I set up alerts in WordPress?

Finish and Save Your Settings

Be sure to Save your configuration at the bottom of the plugin once you've added these keys.

How do I set up alerts in WordPress?

Step 5. Add your first user

Visit your website and you should see the OneSignal Slide and Subscription Bell on your site. You may need to clear any cache plugins you have and refresh the page.

Subscribe to push notifications and check your OneSignal Dashboard Audience > All Users to see your Device Record.

Make sure . Then head over to Messages > New Push to Send your first Push Notification from OneSignal.


If running into issues, checkout the Troubleshooting WordPress for common fixes and plugin configurations.

If stuck, feel free to contact for assistance.

Step 6. Add Prompts To Your WordPress Site

Setup your prompts in the OneSignal WordPress Plugin, so that users can subscribe to push notifications. You can do this in the Configure section of the plugin.

Subscription Bell

A small icon at the corner of your page that users can interact with to subscribe

Slide Prompt

A small modal that comes from the center of the page and asks if users are interested in signing up.

📘More Customizations

For more things you can do with prompting, see WordPress Customizations.

Step 7. Send Push From Your WordPress Site

Notifications can be sent automatically when you publish a post from the WordPress "Posts" tab. You can send push anytime from the Dashboard or API. See Sending Push Messages.

Simply create your post as usual and under "OneSignal Push Notifications" check Send notification on post publish.

How do I set up alerts in WordPress?

If your post is a different post type, you might see "Send notification on forum publish". If you are updating instead of creating, you might see "Send notification on post update". Each of these options should successfully send a notification on the described action.

📘More Customizations

For more things you can do with sending push, see WordPress Customizations.

Welcome Notification

Welcome notifications are an optional way to thank users after subscribing to your site. Users will see a welcome notification as soon as they subscribe. You can edit or disable them in the Configure section of your plugin.

How do I create a pop up message in WordPress?

Head to your WordPress dashboard and go to Popup Maker » Add Popup, and you'll see the popup editing screen appear. On this screen, you'll want to enter a name for your popup. Plus, you can also enter an optional display title as we did in this example. Your visitors will be able to see this optional display title.

How do I get notified of WordPress updates?

Another way to manage updates is by setting up an email notification system for updates. Each time there is an update to WordPress core, plugin, or themes, you will get an email alert. You can then log in to your website and install the update.

How do I add a notification bar in WordPress?

Upload the wp-notification-bar folder to the to the /wp-content/plugins/ directory..
Activate the plugin through the 'Plugins' menu in WordPress..
'Notification Bars' Option will be available in Backend..
Create new Notification and relax!.