| 开发者 | cagriuckan |
|---|---|
| 更新时间 | 2026年11月16日 19:17 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pushai_button] subscribe button anywhere.Actively developed. New features ship regularly, and every release is documented in the changelog below. Feature requests and feedback shape the roadmap.Free vs Pro Both plans include unlimited subscribers, unlimited notifications, the self-hosted setup, and the developer API. Pro adds automation, AI digests, WooCommerce, the built-in PWA, and analytics on top — you only pay for the automation and AI layer, not for audience size. Free — $0 forever
wp pushai queue)/wp-content/plugins/pushai, or install it from your WordPress admin, then activate it.[pushai_button] shortcode to a page, post, or widget so visitors can subscribe.localhost during development.Two ways, both free: place the [pushai_button] shortcode anywhere on your site, or enable the permission popup in Settings — a customizable prompt (title, description, and button labels are all editable) that invites visitors to enable notifications until they subscribe or dismiss it.
No. Notifications are delivered directly from your server using the native Web Push protocol and your own VAPID keys. There's no per-subscriber cost and no external SDK.
In your own WordPress database. You own your subscriber list.
Yes. PushAI keeps one active subscription per device type for each logged-in account — one mobile, one desktop — so a visitor can opt in independently on each device and receive notifications on whichever ones they enabled.
Enable the email fallback in Settings and registered users without an active push subscription receive the same notification as a responsive HTML email instead. Per-user targeting and exclusions are honoured, users can opt out of these emails from their profile, and guests are never emailed.
Yes, for free. Create a bot with @BotFather, add it as an administrator of your channel or group, then enter the bot token and channel in PushAI → Settings → Telegram. New posts, updated posts, and notifications sent to all subscribers are posted with the image and a "Read more" button. Personal notifications, such as comment replies or order updates, are never posted. A "Send test message" button checks the setup.
Yes. Every push link is tagged with utm_source, utm_medium, and a source-aware utm_campaign (e.g. post-42 or ai-digest) so clicks are attributed in Google Analytics and similar tools. Customize or disable this with the pushai_utm_parameters filter.
Yes, with PushAI Pro. Pro can alert admins about new, cancelled, and refunded orders and about low/out-of-stock products; send order-status changes and order notes to customers; remind customers about abandoned carts; follow up with cross-sell suggestions after a purchase; and push trending products. Customer-facing notifications require the customer to have a WordPress account with an active push subscription.
Yes, with PushAI Pro. Pro outputs an installable web-app manifest and registers a service worker so visitors can add your site to their home screen, with a configurable app name, icon, and theme color. The free plugin focuses on push delivery.
PushAI Pro supports OpenAI, Google Gemini, Anthropic Claude, xAI Grok, DeepSeek, and any model available through OpenRouter, with your own API key. Digests are generated only when the active provider has an API key; if a request to the provider fails, a short template backup is sent for that scheduled slot.
Web Push is supported in modern versions of Chrome, Firefox, Edge, and Safari (including iOS 16.4+ when the site is added to the Home Screen). PushAI only shows the subscribe control where Web Push can be used.
Yes, in production. Browsers also allow localhost for local development.
PushAI delivers through a background queue that runs on WP-Cron, and WP-Cron only runs when someone visits your site. On quiet sites a notification can wait until the next visit. PushAI shows a warning on its admin screens and in Tools → Site Health when a due notification has waited more than 10 minutes. For on-time delivery, set define( 'DISABLE_WP_CRON', true ); in wp-config.php and add a server cron job that requests https://your-site.com/wp-cron.php every minute. Developers can change the warning delay with the pushai_queue_delay_threshold filter.
By default PushAI uses the connection address (REMOTE_ADDR) for its rate limits, because forwarding headers can be faked by any visitor. If your server sees the proxy's address instead of the visitor's, every visitor shares one limit. Either let your web server restore the real address (for example mod_remoteip or nginx real_ip), or tell PushAI which header your proxy sets:
add_filter( 'pushai_trusted_ip_headers', fn() => array( 'CF-Connecting-IP' ) );
Only do this when all traffic reaches your site through that proxy. The pushai_client_ip filter can override the result entirely.
Subscribers and notifications are unlimited on both Free and Pro. There's no per-subscriber pricing and no monthly send cap.
No. The free plugin is free forever, and Pro is a single flat price ($21/year) regardless of how many subscribers you have. You only pay for automation and AI features, not for audience size.
Yes — actively. New automations, AI providers, and WooCommerce flows ship regularly. Every release is documented in the changelog, and user feedback shapes the roadmap.
No. PushAI doesn't add vendor branding to your subscribe control or to the notifications you send.
pushai_telegram_targets filter, change the post with pushai_telegram_message, and add sources with pushai_telegram_source_labels.pushai_process_queue event, and the per-minute queue event was sometimes dropped until the next page load. The per-minute schedule is now registered as soon as the plugin file loads, so WordPress can always reschedule it.pushai_notification_context, pushai_handled_notification_args, pushai_delivery_audience_sql, pushai_email_audience_sql, pushai_subscription_variant, pushai_subscription_payload, pushai_notification_recipient_parts, pushai_notification_category_ids). Passing target_segment, actions or ab without an extension that handles them now returns an error instead of being stored.pushai_push_service_hosts filter.pushai_queue_delay_threshold filter.pushai_trusted_ip_headers and pushai_client_ip filters so sites behind Cloudflare or another proxy can rate-limit by the real visitor address instead of the proxy's.* for everything below a path) such as checkout or login pages. On those pages neither the popup nor the browser's own permission request appears; shortcode subscribe buttons keep working. Developers can use the pushai_prompt_excluded filter.pushai:prompt-render and pushai:prompt browser events so extensions can adjust the popup before it renders and react when it is shown, accepted, blocked, or dismissed.pushai_whats_new_items filter.vendor/. Release ZIPs now always run composer install --no-dev so the autoloader never requires myclabs/deep-copy or PHPUnit, and a missing vendor file shows an admin notice instead of taking down WordPress.wp pushai queue process, wp pushai queue status, and wp pushai queue prune.pushai_queue_batch_size and pushai_delivery_chunk_size filters to tune queue throughput.[pushai_notification_badge] shortcode, which now also loads its styles on the front end.pushai_admin_pages filter so PushAI Pro can replace Free preview pages while keeping one menu and one asset list.scheduled_at argument for pushai_trigger_notification() and the pushai_send_notification action, plus the pushai_notification_scheduled hook.target_segment (roles, devices, categories, tags) is stored on the notification and applied when subscriptions are selected. Targeting a segment without an active PushAI Pro license returns pushai_segment_requires_pro.pushai_can_target_segment filter and pushai_notification_composer_fields action so PushAI Pro can license and render the segment builder.actions / actionUrls). Buttons require an active PushAI Pro license (pushai_can_use_actions).ab variant B. Clicks and deliveries can be tagged with event_meta.dispatch_webhook queue jobs for signed outbound HTTP callbacks (X-PushAI-Signature, X-PushAI-Event).pushai_notification_clicked action after a signed click is recorded.pushai_views_YYYYMMDD post meta key every day. Existing meta is migrated automatically and rows older than 14 days are pruned.