In this article

action

jetpack_before_send_email_preview

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

How to use this hook

See “How to use actions and filters to customize Jetpack”.