[subscribe_PNFPB_push_notification]
Renders an inline subscribe/unsubscribe button wherever you place it. Useful in profile pages, sidebars, and widgets.
Basic Usage
[subscribe_PNFPB_push_notification]
What It Does
- Shows a Subscribe push notifications button when the user is not yet subscribed.
- Shows an Unsubscribe push notifications button when the user is already subscribed.
- For logged-in users it also shows a notification-type preference panel for selecting which event types to subscribe to.
- Button text, colors, and dialog text are all configable from PNFPB → Customize buttons.
Button Text Settings
| Option key | Description |
|---|---|
pnfpb_ic_fcm_subscribe_button_shortcode_text |
Subscribe button label |
pnfpb_ic_fcm_unsubscribe_button_shortcode_text |
Unsubscribe button label |
pnfpb_ic_fcm_subscribe_dialog_text_confirm |
Confirmation text after subscribing |
pnfpb_ic_fcm_unsubscribe_dialog_text_confirm |
Confirmation text after unsubscribing |
pnfpb_ic_fcm_subscribe_save_button_text_shortcode |
Save button label in preference panel |
pnfpb_ic_fcm_unsubscribe_cancel_button_text_shortcode |
Cancel button label |
pnfpb_ic_fcm_shortcode_close_button_text |
Close button label |
[PNFPB_PWA_PROMPT]
Renders the PWA install prompt UI element wherever placed. Use this when you have disabled the automatic footer prompt but want a specific page (e.g. an “Install App” landing page) to trigger the install flow.
[PNFPB_PWA_PROMPT]
Notes
- The shortcode outputs the same install dialog that would otherwise appear in the footer.
- The PWA must be enabled in settings for this to have any effect.
- On iOS it shows the “Add to Home Screen via Safari” guidance instead of the Android/Chrome install button.