Post Notifications

PNFPB can send a push notification any time a new WordPress post (or custom post type) transitions to publish status.

Enable Post Notifications

  1. Go to PNFPB → Push Settings → Post / Custom post types.
  2. Enable the Frontend post toggle to fire on all published posts from the front-end editor.
  3. For admin / backend post editor: open the post, find the PNFPB Push Notification metabox in the right sidebar, and switch it ON before publishing.

Custom Post Types

All public custom post types registered on your site appear as individual toggles. Enable each type independently. The plugin limits the toggle list to the first 10 custom post types to keep the admin screen manageable.

Notification Title Customisation

Each post type has its own Notification title field. Use the dynamic shortcode [member name] inside the title to insert the post author’s display name:

[member name] published a new post

This renders as: Jane Doe published a new post.

Scheduling

Mode Description
Immediate (default) Notification sent as soon as the post is published.
Scheduled (hourly / twice-daily / daily / weekly) Batches new posts and sends one digest notification per interval.
Background (Action Scheduler) Uses the bundled Action Scheduler library to run the delivery as an async background job, preventing timeouts on sites with 1000+ subscribers.
Custom seconds interval A custom numeric seconds value (minimum 60 s) for background scheduling.
If you have more than 1000 subscribers enable Background scheduling. Without it, the HTTP request that publishes the post will hold open until all notifications are sent, which may cause a PHP timeout.

Action Hook to Trigger Manually

You can trigger a post notification from your own code:

do_action(
    'PNFPB_trigger_post_notification_action',
    $post_id,
    $post_title,
    $post_content,
    $post_url,
    $post_type
);