Fires immediately before an email preview is dispatched to the current user. Useful for inspecting the post content with an external classifier (e.g. an LLM-based content moderator) or for logging outbound previews. Fires only after the Akismet spam check has passed and the subscriber has been resolved, so handlers receive a post that is about to be sent.
Parameters
- $post
WP_Post The post being previewed.
- $subscriber
Blog_Subscriber The subscriber receiving the preview.
- $subscription
(Blog_Subscription | false) The subscriber's subscription for the current blog, or false if none exists.
Changelog
- Introduced in Jetpack 15.8